rtti cast
Simen Kjaeraas
simen.kjaras at gmail.com
Thu May 8 10:25:36 PDT 2008
terranium <spam at here.lot> wrote:
> BCS Wrote:
>> And this will result in a Seg-V. The program will stop in a predictable
>> manner. IMHO (and it seems others opinions) that is what matters.
>
> The program will not stop in a predictable manner since a third party
> library can silently handle nulls, e.g. XML serialization.
So, don't send any unsanitized data to a third-party library? A third-party
library might also catch and ignore exceptions, if the language
automatically
threw one when seeing an invalid cast.
-- Simen
More information about the Digitalmars-d
mailing list