[Issue 17734] __traits(isRef) cannot currently be used to distinguish l-value from r-value passing of `this`

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Aug 8 13:33:31 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17734

--- Comment #5 from Per Nordlöw <per.nordlow at gmail.com> ---
(In reply to Andrei Alexandrescu from comment #4)
> Don't use methods. Instead, use regular functions with UFCS and overload on
> ref and non-ref to distinguish rvalues from rvalues.

But the whole issue is about operator overloading, and those (sadly) must be
members (currently). Are there any plans of changing this?

--


More information about the Digitalmars-d-bugs mailing list