[phobos] std.all

Andrei Alexandrescu andrei at erdani.com
Tue Jun 8 14:05:05 PDT 2010


On 06/08/2010 03:50 PM, Steve Schveighoffer wrote:
> One further aspect, which is more of a compiler limitation, but should also be taken into account, including modules without using anything from them increases executable size.  For example, compiling with the sample std.all on the newsgroup and the simple hello world program produces an executable twice the size of the same program that just imports std.stdio.
>
> Another issue with this, I think any static constructors that are thread local will be run when you create new threads, even if you never use the module!
>
> -Steve

Oops. Now that sucks!


Andrei


More information about the phobos mailing list