🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3422

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

#3422
From: walter briscoe
Date: Sat, 16 Sep 1995 14:03
15 lines
1206 bytes
In article <439nh8$p7o@news0.rain.rg.net> plong@perf.com "Paul Long" writes:

> Although there are C-like languages that support nested functions, e.g., Gnu C,
> I've recently learned that the execution model must change to support them. Not
> a pretty sight.

Before I wrote C, I wrote Coral 66 which does have nested functions.
They have Algol 60 as a common ancestor.The capability is useful because
of its information hiding capabilities.  I might want to implement a
function as calls of 10 private functions.  Nested functions give that
capability.  The generated code of define 10 functions + define calling
function was pretty similar to define calling function containing
definitions of 10 functions.
--
walter briscoe
Technical Details
Message-ID: <811260180snz@wbriscoe.demon.co.uk>
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!wbriscoe.demon.co.uk
References: <439nh8$p7o@news0.rain.rg.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!wbriscoe.demon.co.uk
From: walter briscoe <walter@wbriscoe.demon.co.uk>
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: Nested functions (was: Re: GOTO single exit point)
Date: Sat, 16 Sep 95 14:03:00 GMT
Message-ID: <811260180snz@wbriscoe.demon.co.uk>
References: <439nh8$p7o@news0.rain.rg.net>
Reply-To: walter@wbriscoe.demon.co.uk
X-NNTP-Posting-Host: wbriscoe.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.30