🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3433

Re: Nested functions (was: Re: GOTO single exit point)

#3433
From: Lawrence Kirby
Date: Fri, 22 Sep 1995 21:40
14 lines
1155 bytes
In article <1995Sep22.171416.1574@ittpub> wil@ittpub.nl "Wil Evers" writes:

>All languages that allow a nested procedure to access the local variables  
>of the enclosing procedure(s) and use lexical scoping have this problem.  

Function nesting can be useful for scoping even when local variables of
enclosing functions are no accessible. If I remember correctly this is
what BCPL supported. It is a shame that C threw this facility away.

-- 
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------
Technical Details
Message-ID: <811806009snz@genesis.demon.co.uk>
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!genesis.demon.co.uk
References: <43j992$623@gabi.gabi-soft.fr> <1995Sep22.171416.1574@ittpub>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!genesis.demon.co.uk
From: Lawrence Kirby <fred@genesis.demon.co.uk>
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: Nested functions (was: Re: GOTO single exit point)
Date: Fri, 22 Sep 95 21:40:09 GMT
Organization: none
Distribution: world
Message-ID: <811806009snz@genesis.demon.co.uk>
References: <43j992$623@gabi.gabi-soft.fr> <1995Sep22.171416.1574@ittpub>
Reply-To: fred@genesis.demon.co.uk
X-NNTP-Posting-Host: genesis.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.27