Article View: comp.std.c
Article #4105Re: Function-prototype scope: Why?
From: James Kanze US/ESC 60/3/141 #407...
Date: Mon, 25 Sep 1995 15:30
Date: Mon, 25 Sep 1995 15:30
21 lines
1411 bytes
1411 bytes
In article <446b6d$r5n@rdsunx.crd.ge.com> volpe@bart.crd.ge.com
(Christopher R. Volpe) writes:
[Concerning function prototype scope...]
|> I tend to prefer simpler rules. "Declared identifiers exist from the point of
|> declaration to the end of the scope in which they are declared." Nice and
|> simple.
Does this mean that you want the following to be illegal:
void f( int i ) ;
int i ; // Illegal, since `i' from f-p still
// in scope.
(I have no particular point of view concerning f-p scope, but I do
want the above to be legal.)
--
James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils en informatique industrielle --
-- Beratung in industrieller Datenverarbeitung
Technical Details
Message-ID:
<KANZE.95Sep25163038@slsvhdt.lts.sel.alcatel.de>Path:
arc1-ca.pugleaf.net!xlink.net!slsv6bt!newsReferences:
<43cgmb$cec@news0.rain.rg.net> <43er80$458@caip.rutgers.edu> <43uhlf$hhi@rdsunx.crd.ge.com> <43vma2$8l4@caip.rutgers.edu> <446b6d$r5n@rdsunx.crd.ge.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!xlink.net!slsv6bt!news From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763) Subject: Re: Function-prototype scope: Why? In-Reply-To: volpe@bart.crd.ge.com's message of 25 Sep 1995 13:35:09 GMT Message-ID: <KANZE.95Sep25163038@slsvhdt.lts.sel.alcatel.de> Sender: news@lts.sel.alcatel.de Organization: SEL References: <43cgmb$cec@news0.rain.rg.net> <43er80$458@caip.rutgers.edu> <43uhlf$hhi@rdsunx.crd.ge.com> <43vma2$8l4@caip.rutgers.edu> <446b6d$r5n@rdsunx.crd.ge.com> Date: 25 Sep 1995 15:30:38 GMT