Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Message-ID | <4F98A318.219@mindspring.com> (permalink) |
|---|---|
| Date | 2012-04-25 21:21 -0400 |
| From | pete <pfiland@mindspring.com> |
| Organization | PF |
| Newsgroups | comp.lang.c |
| Subject | Re: Function Parameter-List with Identifiers |
| References | <jn9n36$4o0$1@dont-email.me> <4F9878AA.69F1@mindspring.com> <jn9udc$emg$2@dont-email.me> |
Shao Miller wrote:
>
> On 4/25/2012 18:20, pete wrote:
> > Shao Miller wrote:
> >>
> >> Good day, respected regulars and other readers!
> >>
> >> Quick question: At file scope, suppose we have:
> >>
> >> extern void foo(int Bar);
> >> void foo(int bar) { return; }
> >>
> >> (Please note the case.) I seem to recall some bit about the former
> >> parameter identifiers being ignored, but can't seem to find that bit.
> >> Does anyone recall if that's so? It's not an identifier-list, but a
> >> parameter-list.
> >>
> >> Thank you for your time.
> >
> > n1570
> >
> > 6.2 Concepts
> > 6.2.1 Scopes of identifiers
> >
> > 4 If the declarator or type specifier
> > that declares the identifier appears
> > within the list of parameter declarations in a function prototype
> > (not part of a function definition),
> > the identifier has function prototype scope,
> > which terminates at the end of the function declarator.
> >
>
> I'm pretty sure that this is the one I was having "reader's block" or
> "finder's block" with. Thanks a lot, pete!
You're welcome.
--
pete
Back to comp.lang.c | Previous | Next — Previous in thread | Find similar | Unroll thread
Function Parameter-List with Identifiers Shao Miller <sha0.miller@gmail.com> - 2012-04-25 16:33 -0400
Re: Function Parameter-List with Identifiers Ben Pfaff <blp@cs.stanford.edu> - 2012-04-25 13:50 -0700
Re: Function Parameter-List with Identifiers Shao Miller <sha0.miller@gmail.com> - 2012-04-25 18:00 -0400
Re: Function Parameter-List with Identifiers Ben Pfaff <blp@cs.stanford.edu> - 2012-04-25 15:22 -0700
Re: Function Parameter-List with Identifiers Shao Miller <sha0.miller@gmail.com> - 2012-04-25 18:39 -0400
Re: Function Parameter-List with Identifiers Shao Miller <sha0.miller@gmail.com> - 2012-04-25 17:45 -0400
Re: Function Parameter-List with Identifiers Shao Miller <sha0.miller@gmail.com> - 2012-04-25 18:37 -0400
Re: Function Parameter-List with Identifiers pete <pfiland@mindspring.com> - 2012-04-25 18:20 -0400
Re: Function Parameter-List with Identifiers Shao Miller <sha0.miller@gmail.com> - 2012-04-25 18:38 -0400
Re: Function Parameter-List with Identifiers pete <pfiland@mindspring.com> - 2012-04-25 21:21 -0400
csiph-web