Xref: utzoo comp.lang.c++:6774 comp.std.c:2584 Newsgroups: comp.lang.c++,comp.std.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: references to dereferenced null pointers Message-ID: <1990Mar11.040935.1388@utzoo.uucp> Organization: U of Toronto Zoology References: <51083@microsoft.UUCP> <25EB8EE8.8462@paris.ics.uci.edu> <52081@microsoft.UUCP> <25F8D2FB.10981@paris.ics.uci.edu> <1990Mar11.015305.28264@utzoo.uucp> Date: Sun, 11 Mar 90 04:09:35 GMT In article <1990Mar11.015305.28264@utzoo.uucp> I wrote: >This code is illegal in C, and always has been... The result of converting the >integer value 0 to a pointer at run time is implementation-defined. Oops; change "illegal" to "naive, improper, unreliable, and unportable". It's thoroughly bad code, but it is not actually illegal, as my own further comments implied. -- MSDOS, abbrev: Maybe SomeDay | Henry Spencer at U of Toronto Zoology an Operating System. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu