Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!columbia!rutgers!ames!ucbcad!ucbvax!cbatt!danews!lvc
From: lvc@danews.ATT.COM (Larry Cipriani)
Newsgroups: comp.lang.c
Subject: Re: Another question on X3J11 proposal (nevermind)
Message-ID: <366@danews.ATT.COM>
Date: Tue, 16-Dec-86 08:25:02 EST
Article-I.D.: danews.366
Posted: Tue Dec 16 08:25:02 1986
Date-Received: Wed, 17-Dec-86 19:33:12 EST
References: <362@danews.ATT.COM>
Organization: AT&T Medical Information Systems, Columbus, Oh
Lines: 16
Keywords: C,variable scope
Summary: Nevermind

> Does the X3J11 proposal allow reuse of names in the following manner?
> main(argc, argv) int argc; char *argc[]; /* first argc */ {
> 	int argc;	/* second argc */
> 	printf("argc = %d\n", argc);
> }

Since posting this I've learned that 1) this is has
been addressed in the X3J11 proposal (the scope of
parameters is determined as if they were automatics
declared at the beginning of the first block), 2)
that because of an ambiguity in K&R a compiler may
allow this (yuck!) or not.
-- 

Larry Cipriani	AT&T Network Systems
cbosgd!{danews,cbsck}!lvc