[Issue 8616] Make pointers dereference with UFCS like they do with member functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 3 20:26:42 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8616
Maxim Fomin <maxim at maxim-fomin.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |maxim at maxim-fomin.ru
Resolution| |DUPLICATE
--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-09-03 20:27:18 PDT ---
This is duplication of 8603.
The problem is that with this approach pointers are implicitly dereferenced.
Consider function:
void foo (T type) { }
which now can be called:
T var;
T *ptr;
type.foo();
ptr.foo();
*** This issue has been marked as a duplicate of issue 8603 ***
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list