Lazy private selective imports

Peter Alexander peter.alexander.au at gmail.com
Mon Mar 24 15:06:05 PDT 2014


On Monday, 24 March 2014 at 21:43:36 UTC, monarch_dodra wrote:
> On Monday, 24 March 2014 at 21:21:30 UTC, Andrej Mitrovic wrote:
>> On Monday, 24 March 2014 at 21:18:49 UTC, Peter Alexander 
>> wrote:
>>> Would it be possible to perform private selective imports 
>>> lazily?
>>
>> This was discussed fairly recently: 
>> http://forum.dlang.org/thread/l8t2o1$kq0$1@digitalmars.com?page=9 
>> (and previous or next pages)
>
> This is a very recent issue, as a matter of fact, I ran into it 
> *TODAY*:
> https://github.com/D-Programming-Language/phobos/pull/2047

See the link at the end of the OP ;-)


> By combining templates and aliases, you can have a library 
> solution:
>
> ...
>
> 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. You have provided a library 
solution, but it's ugly to have to do that manually for every 
function.


More information about the Digitalmars-d mailing list