[Issue 8114] Methods are delegates, not functions.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 19 16:21:21 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8114
--- Comment #12 from Stewart Gordon <smjg at iname.com> 2012-05-19 16:22:55 PDT ---
(In reply to comment #11)
> (In reply to comment #5)
> > http://dlang.org/type.html#delegates
> > "There are no pointers-to-members in D"
>
> There aren't though. Pointers to members are data types that relative to a
> certain class.
What dictionary are you going by?
> Functions and delegates aren't relative to any class, they're absolute.
This is only a matter of how C++ happens to notate pointer-to-member types and
the dereferencing thereof. (At least a pointer to a member function - a
pointer to a member variable is a whole different beast.) Below this level,
it's just a function type, the class it's "relative to" just being the type of
the implicit this parameter.
--
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