Pure dynamic casts?

Steven Schveighoffer schveiguy at yahoo.com
Tue Sep 22 12:35:10 PDT 2009


On Tue, 22 Sep 2009 14:03:28 -0400, Jarrett Billingsley  
<jarrett.billingsley at gmail.com> wrote:

>
> 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, this is true of many optimizations :P

Are you saying it's bad style because of the expense of dynamic casting or  
for some other reason?  If dynamic cast were pure, that takes away that  
argument.

-Steve



More information about the Digitalmars-d mailing list