ADL
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 4 05:30:17 PDT 2016
On 9/4/16 2:36 AM, Timon Gehr wrote:
> On 03.09.2016 13:24, Walter Bright wrote:
>>
>> Something like:
>>
>> void foo(T,U)(T t, U u)
>> {
>> alias func = ModuleOf!T.func;
>> alias func = ModuleOf!U.func;
>>
>> func(t, u);
>> }
>
> Does not work. Local overloads are not supported.
Might be a sensible enhancement. Removing artificial limitations is good
programming language design. Turtles! -- Andrei
More information about the Digitalmars-d
mailing list