[Issue 2672] Delegate .funcptr returns wrong type.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 1 17:44:52 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2672
------- Comment #1 from dsimcha at yahoo.com 2009-03-01 19:44 -------
Sane version of this bug report, not posted ridiculously late at night (don't
know what I was thinking on my initial post):
void delegate(uint) foo;
pragma(msg, typeof(foo.funcptr).stringof); // void function(uint)
Because of this, you can't use foo.funcptr for calling the underlying function.
The correct type would be void function(void*, uint).
--
More information about the Digitalmars-d-bugs
mailing list