[Issue 23779] UFCS using pointer should be allowed and should automatically take a reference on values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 14 16:46:40 UTC 2023


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
The UFCS implementation is already very complex, why would we add another
special case?

This needs to be a accompanied by strong rationale to have any chances of being
accepted.

If we were to implement anything, I would rather go the other way around and
implement automatic dereferencing with UFCS not automatic address taking.
However, I would argue that we should not complicate UFCS any further.

--


More information about the Digitalmars-d-bugs mailing list