[Issue 15416] UFCS does not attempt to derefence (but should it?)

2022-10-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15416

RazvanN  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||razvan.nitu1...@gmail.com
 Resolution|--- |WONTFIX

--- Comment #1 from RazvanN  ---
The pointer is automatically dereferenced only in the presence of the dot (.)
operator when a field is queried or a method is invoked. In this situation
(`d.foo`) neither of those situations is encountered. Therefore, UFCS is tried
and it seems that foo is called with argument d. As you have noticed this is
not a situation where D automatically dereferences.

Changing this behavior will lead to massive breakages and it doesn't seem to
buy us anything.

--


[Issue 15416] UFCS does not attempt to derefence (but should it?)

2017-07-01 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15416

Vladimir Panteleev  changed:

   What|Removed |Added

   Keywords||spec

--


[Issue 15416] UFCS does not attempt to derefence (but should it?)

2015-12-07 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15416

Infiltrator  changed:

   What|Removed |Added

 CC||and...@erdani.com,
   ||bugzi...@digitalmars.com

--