On Tue, 22 Sep 2009 14:03:28 -0400, Jarrett Billingsley <jarrett.billings...@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

Reply via email to