Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #19929

Re: Function Parameter-List with Identifiers

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Wed, 25 Apr 2012 17:20:23 -0500
Message-ID <4F9878AA.69F1@mindspring.com> (permalink)
Date Wed, 25 Apr 2012 18:20:26 -0400
From pete <pfiland@mindspring.com>
Reply-To pfiland@mindspring.com
Organization PF
X-Mailer Mozilla 3.04Gold (WinNT; I)
MIME-Version 1.0
Newsgroups comp.lang.c
Subject Re: Function Parameter-List with Identifiers
References <jn9n36$4o0$1@dont-email.me>
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Lines 30
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 4.154.222.13
X-Trace sv3-Gt4MV6ioUuwRfXHDRb9FSa4ccMabkf0f9r+52J/L+PCUjtna4Kcg+VAgQIoBO46D93iIL33o2kiGa3a!xYZmYuhSFFKOHhQyUn5qzQ+CX3N2u1dtdnrpNBD7NXG5aFokp0lH/wyLOy3kV63dpNP5vo9jFUXK!NGxXXWmpqw==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1867
X-Received-Bytes 2008
Xref csiph.com comp.lang.c:19929

Show key headers only | View raw


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.

-- 
pete

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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