D - dynamic_cast only?

Steve Teale steve.teale at britseyeview.com
Sun Dec 25 09:31:15 PST 2011


On Sun, 25 Dec 2011 15:01:31 +0100, Vladimir Panteleev wrote:
> 
> I don't understand. Casting a void* to a class bypasses all static type
> checks. This is one of those cases where you "tell the compiler that you
> know what you're doing" - and if you try to call a method that wasn't in
> the original class's vtable, that's obviously not true.

Me neither, but it worked before somehow. Anyway, Mike Wey simply fixed 
gtkD on Christmas day, so now the derived object is handed out instead of 
the generic Widget.



More information about the Digitalmars-d mailing list