null pointers of type JOKE* can't be dereferenced

bdm659 at csc.anu.oz bdm659 at csc.anu.oz
Tue Oct 31 23:16:50 AEST 1989


In article <11441 at smoke.BRL.MIL>, gwyn at smoke.BRL.MIL (Doug Gwyn) writes:
>
> There is another point worth making here.  The Standard must be
> subjected to more than mere "linguistic analysis" in order to
> understand what it is saying; there is a gestalt that must be
> acquired, and it goes beyond the simple expansion of words in
> terms of their definitions, just as concepts in general embody
> much more than is found in their literal definitions.

  That's clearly true, though one valid measure of the success of the standard
is how readily an "average technically competent person" can acquire that
gestalt by studying the document.
  It's also true that it would be unfair to expect a technical document of this
complexity to have the rigor and internal consistency that we might expect of
a mathematical proof.  That doesn't mean that inconsistencies shouldn't be
pointed out (I intend to--this isn't sacred scripture); it means that they need
not be taken too seriously unless they are genuinely likely to mislead someone.

I'm told that the sentence I quoted from 3.3.9 now reads

    "If two pointers to object or incomplete types compare equal, they both
    are null pointers, or both point to the same object, or both point one
    past the last element of the same array object.".

The previous version of the sentence was simply false.
[It used to be much worse, though.  I'm fairly sure that the draft of May 87
is literally satisfied by an implementation in which all pointers compare
equal always.]

Brendan McKay.   bdm at anucsd.oz  or   bdm at anucsd.oz.au



More information about the Comp.std.c mailing list