Frustrated trying to be portable

Henry Spencer henry at zoo.toronto.edu
Sun Mar 3 10:38:47 AEST 1991


In article <N4Q94O2 at xds13.ferranti.com> peter at ficc.ferranti.com (Peter da Silva) writes:
>In the former case, overlap is a problem but you can compare them for
>magnitude. In the latter case, overlap is not a problem. The result of
>comparing two pointers into different objects is undefined but when you
>don't care about the result why worry?
>
>(or is this one of those cases where "undefined" means "run nethack"?)

"Undefined" *always* means "might run nethack", "might call your boss and
report you for incompetence", "might phone an anonymous tip to the FBI that
you're running dope to Saddam Hussein", etc.  Portable programs must avoid
ever encountering such situations.
-- 
"But this *is* the simplified version   | Henry Spencer @ U of Toronto Zoology
for the general public."     -S. Harris |  henry at zoo.toronto.edu  utzoo!henry



More information about the Comp.std.c mailing list