Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!pt.cs.cmu.edu!ius2.cs.cmu.edu!edw From: edw@ius2.cs.cmu.edu (Eddie Wyatt) Newsgroups: comp.lang.c Subject: NULL pointers as arguments Message-ID: <1130@ius2.cs.cmu.edu> Date: Tue, 28-Apr-87 17:00:17 EDT Article-I.D.: ius2.1130 Posted: Tue Apr 28 17:00:17 1987 Date-Received: Thu, 30-Apr-87 03:09:56 EDT Distribution: na Organization: Carnegie-Mellon University, CS/RI Lines: 12 It seems to me that the problems of having foo(NULL) be correct on whatever machine you are working on could be taken care of by having pointer arguements aways be type coerced into whatever the largest pointer type is on the machine (in cases presented to me that is char *). This could be done as part of the language definition just as the float parameter are typed coerced into doubles. This assumes there is some bound on pointer type sizes though. Any comments? -- Eddie Wyatt