Ultimate SLM (Re: pointers to arrays)

Dave Jones djones at megatest.UUCP
Thu Feb 23 07:00:15 AEST 1989


>From article <23792 at watmath.waterloo.edu>, by rbutterworth at watmath.waterloo.edu (Ray Butterworth):

> 
> NULL is NOT a null pointer.
> NULL is possibly NOT a pointer at all.
> NULL is NOT part of the C language.
> NULL IS a mistake.
> 



It's the ultimate SLM! It has caused oh-so-much confusion, and
why? -- in the name of self-documentation, of course!

It's has a special place of honor, at the very top of the list,
in my SLM compendium (a work in progress).


                         Dave J.



P.S. If you would like to contribute an SLM for the common good,
please do so.  The rules are (1) it must be taken from real live
production code, and (2) it must be really silly, and (3) it must 
have no value as an abstraction.  (If there is even a remote chance
that the value denoted by the macro might change, it doesn't qualify.)

Send entries to sun!megatest!djones.


                         D. J.



More information about the Comp.lang.c mailing list