ADL

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 03:11:05 PDT 2016


On 03.09.2016 03:12, Stefan Koch wrote:
> On Saturday, 3 September 2016 at 01:09:18 UTC, Walter Bright wrote:
>>
>> Essentially, ADL has awkward problems when getting beyond the simple
>> cases. It isn't right for D.
>
> I could not agree more strongly!
>
> If this feature were supported, it would probably break our module system.

Break how?

> Even if we could shoehorn it into the language it would make the
> compiler slower.

If ADL is done as a fallback, then it is only slower in those cases 
where it is either actually used, or __traits(compiles,...) is used to 
determine that some function overload does not exist.


More information about the Digitalmars-d mailing list