Lazy private selective imports

monarch_dodra monarchdodra at gmail.com
Mon Mar 24 15:19:47 PDT 2014


On Monday, 24 March 2014 at 22:06:07 UTC, Peter Alexander wrote:
> On Monday, 24 March 2014 at 21:43:36 UTC, monarch_dodra wrote:
>> In any case, while not as convenient as a built-in "lazy 
>> import", it could be a solution worth digging into.
>
> This is why I brought this up.

Oops.

I *thought* the coincidence was uncanny :)

> You have provided a library solution, but it's ugly to have to 
> do that manually for every function.

Yeah. It's ugly. It also fails if said alias needs parameters 
(eg: "format!char").

It would be nice if selective and/or static imports were lazy.


More information about the Digitalmars-d mailing list