David Brown wrote:
On Sun, Mar 30, 2008 at 08:08:38PM -0700, Christopher Smith wrote:

Most languages/compilers fail to identify all the possible scenarios that can end in disaster. Truth be told, good C++ compilers these days do a remarkable job of catching "undefined behavior".

The C++ language seems intent on creating as many disaster-ending scenarios as it can. I remember the first time I tried writing an exception handler. The language/compiler had no problem with me expressing an exception where
the exception data lived right on the stack--the one it was just going to
unwind.  My program even worked for a little while.
Actually, that is the kind of thing that modern compilers do a pretty good job of at least warning you about.

--Chris

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to