rtti cast
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed May 7 12:14:30 PDT 2008
"terranium" <spam at here.lot> wrote in message
news:fvs67v$1gge$1 at digitalmars.com...
> That's *exactly* why you need safe cast.
> ...
> yeah, try something else, hide the bug :)
> ...
> ...efficient bugmaker.
I _really_ don't understand where you're coming from here. I'd be
interested to see some example of code where an invalid downcast were a bug
and where a failed cast _should_ throw an exception. I've only ever used
downcasts in D as a replacement for Java's "instanceof", where it's just a
simple typecheck.
More information about the Digitalmars-d
mailing list