[phobos] std.all

Andrei Alexandrescu andrei at erdani.com
Tue Jun 8 11:34:24 PDT 2010


(don't forget to add the phobos list when replying)

On 06/08/2010 01:10 PM, David Simcha wrote:
> Ok, well I remember this discussion about 6 months ago on digitalmars.D,
> and I guess this answers my other implicit question, which was "Why
> hasn't this been done already?".  I had thought that it was just an
> oversight that got lost in bigger and better things.

We definitely should do it. I was unable to build Phobos with std.all, 
but I pasted all of its contents into a file with an empty main. 
Building and running the whole banana only took 0.68 seconds.

We're enjoying a tremendous compilation speed advantage, which affords 
us to do things that other languages can't hope to emulate reasonably. 
Let's use that advantage.

I just checked in linux.mak with code that generates std/all.d. For now, 
the code comments out std.bigint to make everything work. It does work 
rather beautifully.

Walter, could you look into the std.bigint issue? All you have to do is 
build on Linux, uncomment the import of std.bigint, and see why the 
error occurs.


Thanks,

Andrei


More information about the phobos mailing list