ADL
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Sep 3 03:33:22 PDT 2016
On 9/3/2016 3:14 AM, Timon Gehr wrote:
> On 03.09.2016 10:37, Walter Bright wrote:
>> None of the algorithms used in std.algorithm or elsewhere in Phobos have
>> this particular issue.
>
> Yes they do. It is not possible to implement the range functions as non-members.
It's done for arrays via std.array.
>> Nor have I seen ADL supported in any other
>> language, despite many supporting generic algorithms.
>
> Which other such languages have templates like D or C++?
I don't think it is a template issue. It's a name lookup issue. There's LINQ in
C#, for example.
More information about the Digitalmars-d
mailing list