Pure dynamic casts?

bearophile bearophileHUGS at lycos.com
Tue Sep 22 11:59:07 PDT 2009


Jarrett Billingsley:

> Or you could - I dunno - cache the result of the dynamic cast in a
> local, since doing multiple dynamic casts is terrible style anyway.
> Just saying. ;)

Yes, most of the optimizations done by the compiler can instead be done by the programmer (but some stupid code can be generated by macros, mixins, etc).

Bye,
bearophile



More information about the Digitalmars-d mailing list