View previous topic :: View next topic 
Author 
Message 
Don Clugston
Joined: 05 Oct 2005 Posts: 91 Location: Germany (expat Australian)

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


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 


tgasiba
Joined: 25 Nov 2005 Posts: 5 Location: Germany

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


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 




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
