[fdo-dev] Pre-conditions and unsafe constuctions

Mateusz Loskot mateusz at loskot.net
Thu Dec 7 13:20:59 EST 2006


Traian Stanev wrote:
> 
> The problem reported there looks like it's simply programmer oversight
> (which happens when there are so many classes floating around). 

Traiam,

The problem would not occur (or was easily caught by compiler)
if C++ casting operators was used, instead of C bruteforce casts.

> I don't
> know of a blanket way to fix incorrect use of casting, apart
> from making
> everyone program in Java or C#.

LOL ;-)

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net




More information about the Fdo_dev mailing list