Mail Archives: djgpp/1997/02/24/04:20:56
John M. Aldrich wrote:
> No, but apparently this sort of thing is system-specific. When you do
> that with DJGPP in DOS, it works fine (although it still is very
> unsafe).
If you're looking for portability, then you're interested in strict
conformance to ANSI C (or draft standard C++). In that case, you'd better
not do it. Whether it works on one or more platforms is not a good
indication of whether something is good C (or C++) programming practice.
After all, some operating systems will let you dereference the null pointer
and won't complain, even though that's clearly a naughty thing and
something that you would hope (but unfortunately will not always happen)
the compiler will detect.
--
Erik Max Francis, &tSftDotIotE / email: max AT alcyone DOT com
Alcyone Systems / web: http://www.alcyone.com/max/
San Jose, California, United States / icbm: 37 20 07 N 121 53 38 W
\
"I am become death, / destroyer of worlds."
/ J. Robert Oppenheimer (quoting legend)
- Raw text -