Another question on X3J11 proposal
Michael Meissner
meissner at dg_rtp.UUCP
Wed Dec 17 23:47:28 AEST 1986
In article <362 at danews.ATT.COM> lvc at 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
More information about the Comp.lang.c
mailing list