ADL

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 5 02:06:44 PDT 2016


On 9/5/16 10:55 AM, Jacob Carlborg wrote:
> I thought one of the reasons for UFCS was to be able to make a type
> support the range interface without modifying the type.

That is correct (and btw the example should use the member call syntax). 
But touching a type's module is modifying the type. -- Andrei


More information about the Digitalmars-d mailing list