Article View: comp.std.c
Article #4195Re: Nested functions (was: Re: GOTO single exit point)
From: Barry Margolin
Date: Sat, 07 Oct 1995 09:44
Date: Sat, 07 Oct 1995 09:44
14 lines
1054 bytes
1054 bytes
In article <1995Oct5.235012.26868@dcs.warwick.ac.uk>, Zefram <A.Main@dcs.warwick.ac.uk> wrote: >Simple solution: only allow nested functions to access static veriables >of the enclosing function(s). Easy to implement, no need for extra >magic. This would make functions that pass nested functions around non-reentrant. See the qsort() example in my posting, where I mention that you'd have a problem if the comparison procedure calls a similar sort recursively. -- Barry Margolin BBN PlaNET Corporation, Cambridge, MA barmar@bbnplanet.com Phone (617) 873-3126 - Fax (617) 873-6351
Technical Details
Message-ID:
<455i56$sok@tools.bbnplanet.com>Path:
arc1-ca.pugleaf.net!tools.bbnplanet.com!not-for-mailReferences:
<dqua.811915828@dqua> <1995Sep25.114935.1575@ittpub> <1995Oct5.235012.26868@dcs.warwick.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!tools.bbnplanet.com!not-for-mail From: barmar@tools.bbnplanet.com (Barry Margolin) Newsgroups: comp.std.c Subject: Re: Nested functions (was: Re: GOTO single exit point) Date: 7 Oct 1995 05:44:06 -0400 Organization: BBN Planet Corp., Cambridge, MA Message-ID: <455i56$sok@tools.bbnplanet.com> References: <dqua.811915828@dqua> <1995Sep25.114935.1575@ittpub> <1995Oct5.235012.26868@dcs.warwick.ac.uk> NNTP-Posting-Host: tools.bbnplanet.com