FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Any suggestions on what file structure should be used?

 
Post new topic   Reply to topic     Forum Index -> MathExtra
View previous topic :: View next topic  
Author Message
Don Clugston



Joined: 05 Oct 2005
Posts: 91
Location: Germany (expat Australian)

PostPosted: Fri Nov 25, 2005 10:03 am    Post subject: Any suggestions on what file structure should be used? Reply with quote

If this goes into Phobos,
the *ideal* situation would be:

OPTION 1

std.math.statistic; // MathExtra.mathstat.d
std.math.special; // MathExtra.mathspecial.d
std.math.discrete; // Number theory stuff, factorials, nChoosek, etc.

if there was a change to module lookup so that if there was a "math" directory, but no "math.d" file, then

std.math;
would mean std.math.math.d;
(like the implicit template property rule, math!() already means math!().math).

This would mean that any file could be expanded into a directory, without modifying existing code.

OPTION 2:
std.advmath.statistic;
std.advmath.special;

etc.

OPTION 3:
std.mathspecial;
std.mathstat;

etc.

Anyone have any opinions, or any better ideas?
Back to top
View user's profile Send private message
tgasiba



Joined: 25 Nov 2005
Posts: 5
Location: Germany

PostPosted: Fri Nov 25, 2005 11:05 am    Post subject: Re: Any suggestions on what file structure should be used? Reply with quote

For me, option 1 seems the most reasonable way to go!
A simple "import std.math;" would import the already standard (as in C) math functions, and "import std.math.statistic", etc... for more special math stuff.
Personally I don't like the other options...
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MathExtra All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group