D import idiom compilation time
Adam D. Ruppe
destructionator at gmail.com
Tue Jan 8 13:40:51 UTC 2019
On Tuesday, 8 January 2019 at 10:54:24 UTC, Martin Tschierschke
wrote:
> I realized that UFCS would work only if the alias is defined
> outside of main();
>
> Is this a bug or a feature? Don't know if this can be solved.
It is by design - UFCS only considered for global symbols. The
idea is to simplify the reasoning process for finding .members by
eliminating local scopes from the search (supposed to make ide
stuff easier, etc)
Whether this is good design or not is left up to the reader.
More information about the Digitalmars-d
mailing list