phobos dependencies

Michel Fortin michel.fortin at michelf.ca
Fri Dec 20 17:22:10 PST 2013


On 2013-12-20 21:36:15 +0000, Andrei Alexandrescu 
<SeeWebsiteForEmail at erdani.org> said:

> On 12/20/13 12:43 PM, Martin Nowak wrote:
>> Couldn't static imports be made lazy without breaking any code?
> 
> One simple idea is to make all imports lazy - no change in semantics.

Sure, why not. Except that upon reaching the first non-fully-qualified 
symbol you'd have to load them all because they could all contain a 
symbol with that name. So in practice it'd change nothing, except for 
static imports.

Beside that, loading modules eagerly is more parallelizable.

-- 
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca



More information about the Digitalmars-d mailing list