Static cast

Jason House jason.james.house at gmail.com
Wed Jun 25 14:47:41 PDT 2008


What is the proper way to implement static cast?

cast(T) to shift with an object/ interface hierarchy is dynamic and slow. My problem is that cast(T)cast(void*) does not honor vtable locations and ClassInfo is only available at runtime.


More information about the Digitalmars-d-learn mailing list