safer casts - take II

BCS ao at pathlink.com
Tue May 13 13:03:42 PDT 2008


Reply to terranium,

> BCS Wrote:
> 
>> As far as I'm concerned it's still an open question if the
>> dynamic_cast or force_cast (by whatever name) will be used more
>> often. So I don't see how you can call it legacy.
>> 
> Legaciness has nothing to do with frequency of use. I believe, legacy
> code is used more often, in fact, you're right here. Windows ANSI API
> is a good example. Total commander... :) Windows itself has
> workarounds for bugs in MS Office...
>

So you are saying that the non-throwing cast should be treated as "the way 
we did it before we knew better"? If you want to go that way, in order to 
convince me, you will need to demonstrate a better way. So far no one has.





More information about the Digitalmars-d mailing list