phobos dependencies

Jacob Carlborg doob at me.com
Wed Dec 18 23:20:05 PST 2013


On 2013-12-18 22:40, Andrei Alexandrescu wrote:

> There are several directions we can take this.
>
> 1. Improve the compiler to handle imports lazily, i.e. an unused import
> is never opened. That's unlikely to help a lot of uses because most
> unqualified name lookups require all imports to be loaded (even after
> the name if resolved, the compiler must still look for ambiguities).
>
> 2. Push imports from top level into the entities (functions, classes
> etc) that use them.
>
> 3. Apply classic dependency management (break larger modules in smaller
> ones, accept some code duplication etc).
>
> I favor (2).

I would guess that not a single of these solutions alone would solve the 
problem. Most likely all will be needed.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list