Topic: about Null references
Author: "Scott Robert Ladd" <scott@coyotegulch.com>
Date: Thu, 27 Dec 2001 15:47:58 GMT Raw View
"John Nagle" <nagle@animats.com> wrote in message
news:3C2A2F89.E61743FC@animats.com...
> We need a popular implementation that checks for null references
> just to put a stop to this.
I bumped into this one just last night, in some third-party code... Intel
C++ 5.0 for Linux complained about the explicit creation of a NULL
reference. I don't know if Intel C++ qualifies as "popular".
I'm going to have to rewrite this mess, which *relies* on "NULL references";
it looks like some old C code wrapped in C++ classes by someone who didn't
understand references. Yuck... but at least Intel C++ recognized the problem
and reported it to me!
--
Scott Robert Ladd
Master of Complexity, Destroyer of Order and Chaos
Visit CoyoteGulch at http://www.coyotegulch.com
No ads -- just info, algorithms, and very free code.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]
Author: John Nagle <nagle@animats.com>
Date: Wed, 26 Dec 2001 21:10:56 GMT Raw View
We need a popular implementation that checks for null references
just to put a stop to this.
John Nagle
Animats
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]