D - dynamic_cast only?

Nick Sabalausky a at a.a
Mon Dec 26 08:58:32 PST 2011


"bearophile" <bearophileHUGS at lycos.com> wrote in message 
news:jd6sbg$qb6$1 at digitalmars.com...
> Steve Teale:
>
>> My reading of the current documentation on casts leaves me with the
>> impression that D now has only the equivalent of the C++ dynamic_cast.
>
> I'd like this in Phobos:
> http://d.puremagic.com/issues/show_bug.cgi?id=5559
>

Yea, we need various casts in phobos. It's far too easy to accidentally cast 
away immutable and const. 




More information about the Digitalmars-d mailing list