ADL

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 3 05:54:17 PDT 2016


On 9/3/16 12:03 PM, Timon Gehr wrote:
> On 03.09.2016 11:37, Manu via Digitalmars-d wrote:
>> On 3 September 2016 at 18:56, Walter Bright via Digitalmars-d
>> <digitalmars-d at puremagic.com> wrote:
>>> On 9/3/2016 1:37 AM, Walter Bright wrote:
>>>>
>>>> I thought #4 in particular was rather cool, I plan to use it as an
>>>> example.
>>>
>>>
>>> https://github.com/dlang/phobos/pull/4762
>>
>> Complexity ramps up further if there are N arguments to the algorithm.
>> It needs to search each of the arguments modules.
>>
>
> template adl(string fun){ /* TODO */ }
>
> adl!"foo"(S.init,T.init);

Nice, yah, that kinds of stuff. -- Andrei


More information about the Digitalmars-d mailing list