[Issue 2438] Cannot get types of delegate properties
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 1 07:19:31 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2438
------- Comment #1 from jarrett.billingsley at gmail.com 2008-11-01 09:19 -------
Not that I don't think it's a bug, but - what the heck? I honestly can't tell
what Dg.ptr is. The compiler doesn't accept it as a type, but it also doesn't
accept it as an expression. Dg.ptr.stringof gives "void*", as if it's a type.
I'm kind of surprised that you can access it at all.
Also, another workaround is to use typeof(Dg.init.ptr/funcptr).
--
More information about the Digitalmars-d-bugs
mailing list