Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!rutgers!mit-eddie!genrad!decvax!mcnc!rti-sel!dg_rtp!meissner
From: meissner@dg_rtp.UUCP (Michael Meissner)
Newsgroups: comp.lang.c
Subject: Re: Another question on X3J11 proposal
Message-ID: <764@dg_rtp.UUCP>
Date: Wed, 17-Dec-86 08:47:28 EST
Article-I.D.: dg_rtp.764
Posted: Wed Dec 17 08:47:28 1986
Date-Received: Thu, 18-Dec-86 21:07:04 EST
References: <362@danews.ATT.COM>
Reply-To: meissner@dg_rtp.UUCP (Michael Meissner)
Organization: Data General (Languages @ Research Triangle Park, NC.)
Lines: 26

In article <362@danews.ATT.COM> lvc@danews.ATT.COM (Larry Cipriani) writes:
>
> Does the X3J11 proposal allow reuse of names in the following manner?
>
> main(argc, argv)
>	int argc;	/* first argc */
>	char *argc[];
> {
>	int argc;	/* second argc */
>
>	printf("argc = %d\n", argc);
> }
>
> 3 PDP 11/70 compilers I use give the message 'argc redeclared' and
> abort. A 3B5 and 3B2 compiler I use allow this.  I believe that the
> PDP compilers are correct and the 3b compilers are broken.

The current X3J11 proposal does not allow the redeclaration (because
parameters are considered to be in the same logical scope).
--
	Michael Meissner, Data General
	...mcnc!rti-sel!dg_rtp!meissner

-- 
	Michael Meissner, Data General
	...mcnc!rti-sel!dg_rtp!meissner