[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 12:09:53 PDT 2017


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

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei at erdani.com
         Resolution|---                         |INVALID

--- Comment #2 from Andrei Alexandrescu <andrei at erdani.com> ---
Yeah likely won't happen. Also, it's a modularity issue - a function can't know
inside how it was called. At best we could do that via overloading, but overall
I don't see this being a good start. I recommend a closer look/discussion
before opening an enhancement.

--


More information about the Digitalmars-d-bugs mailing list