D import idiom compilation time

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sat Jan 5 19:49:41 UTC 2019


On 1/5/19 12:30 PM, Neia Neutuladh wrote:
> On Sat, 05 Jan 2019 06:52:14 -0800, H. S. Teoh wrote:
>> Hmm. Couldn't you make it work by making it lazy? I.e., have opDispatch
>> return a struct that encapsulates a partial package path, and that
>> contains a further opDispatch to resolve the next component in the
>> qualified name, and that only resolves to the actual symbol when it
>> actually references an actual symbol?
> 
> Right! However, you can't tell the difference between accessing a symbol
> that doesn't exist and accessing a package.

Hmmm... we should have introspection mechanisms to distinguish these cases.



More information about the Digitalmars-d mailing list