nasty evil pointers

brian at bucc2.UUCP brian at bucc2.UUCP
Mon Mar 14 04:44:00 AEST 1988


> /* Written 5:54 pm Mar 11,1988 by ihlpf.ATT.COM!nevin1 in bucc2:comp.lang.c */
> In article <13100003 at bucc2> brian at bucc2.UUCP writes:
> >It would be nice if we could check every pointer as it was used...
> 
> This seems to be more of a job for the OS than for the language.  If you try
> to check every single use of pointers, you end up with a language like Pascal
> :-).  I don't mind the checking of pointers as long as it doesn't interfere
> with the efficiency that those of us who program in C have come to love :-).
> Also, if the pointer checks find an error, I would like it to transfer control
> to an error-handling section of my program so that I could either try to
> recover or go down *gracefully* (saving calculated data, etc.).
> -- 
>  _ __			NEVIN J. LIBER	..!ihnp4!ihlpf!nevin1	(312) 510-6194

  Of course we don't plan to ship products with pointer checking code! The
whole idea of checking the pointers is as a tool to locate the problems that
are causing the bad pointers in the first place. The pointer checking code
would be used only in the module debugging phase. It would be removed before
the project reached alpha test.

  You're right, this is a job of the OS. Sadly, we don't even have an
operating system on the machines we use, all we have is MS-DOS. (no smiley
faces)

...............................................................................

  When the going gets weird, the weird turn pro.

  Brian Michael Wendt       UUCP: {cepu,ihnp4,uiucdcs,noao}!bradley!brian
  Bradley University        ARPA: cepu!bradley!brian at seas.ucla.edu
  (309) 691-5175            ICBM: 40 40' N  89 34' W



More information about the Comp.lang.c mailing list