ADL
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Mon Sep 5 07:41:00 PDT 2016
On 2016-09-05 15:28, Andrei Alexandrescu wrote:
> Yah, make front a member please. It's in the same module so you're not
> breaking any encapsulation anyway. -- Andrei
I just said:
"I thought one of the reasons for UFCS was to be able to make a type
support the range interface without modifying the type" [1].
And you replied:
"That is correct" [2].
And now you're saying that it should be a member? What if it's in the
different module? Or as it is for the built-in arrays, not possible to
add a member there.
[1] http://forum.dlang.org/post/nqjbu4$1i7h$1@digitalmars.com
[2] http://forum.dlang.org/post/nqjcj6$1j3b$1@digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list