March 14, 2023 [Issue 23779] UFCS using pointer should be allowed and should automatically take a reference on values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23779 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com --- Comment #1 from RazvanN <razvan.nitu1305@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. -- |
March 14, 2023 [Issue 23779] UFCS using pointer should be allowed and should automatically take a reference on values | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23779 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |b2.temp@gmx.com Resolution|--- |INVALID --- Comment #2 from Basile-z <b2.temp@gmx.com> --- what is requested here is an implict conversion from a `D` to a `D*` based on lvaluness. It is not very well described, and maybe a second attempt would be better, so close as "invalid" for the moment. -- |
Copyright © 1999-2021 by the D Language Foundation