dynamic type casting in D

dave garapata at gmail.com
Sun May 30 12:40:27 PDT 2010


Awesome! I just tried it out, the cast expression is exactly what I was looking for.

I'm currently using Tango and tried out its runtime traits api, this works as
expected:

if(implements(typeof(something).classinfo, A.classinfo))

Thanks for the info!


More information about the Digitalmars-d-learn mailing list