Path: utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!elroy!aero!venera.isi.edu!lmiller From: lmiller@venera.isi.edu (Larry Miller) Newsgroups: comp.lang.c Subject: Re: typedefs and prototypes Message-ID: <6387@venera.isi.edu> Date: 27 Sep 88 21:03:35 GMT References: <7135@bloom-beacon.MIT.EDU> <8543@smoke.ARPA> <13664@mimsy.UUCP> <12326@oberon.USC.EDU> <13709@mimsy.UUCP> Reply-To: lmiller@venera.isi.edu.UUCP (Larry Miller) Organization: Information Sciences Institute, Univ. of So. California Lines: 27 In article <13709@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In article <12326@oberon.USC.EDU> english@panarea.usc.edu (Joe English) writes: > >(Whether this means that > > void foo(int i, char *i); > >is legal I do not know.) >-- >In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) >Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris Identifiers in prototypes have scope to the end of the declaration. The above is not legal (though notice the ancient date on my copy of the draft. [Ref: Draft standard, Nov., 1985 (!), Ss C.5.3.3] In a declaration that is not a function definition [i.e., a function prototype], any identifier declared in the list has function prototype scope, which extends to the end of the declaration... Larry Miller lmiller@venera.isi.edu (no uucp) USC/ISI 213-822-1511 4676 Admiralty Way Marina del Rey, CA. 90292