🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6456

Re: first class functions (opps)

#6456
From: s m ryan
Date: Mon, 08 May 1989 01:42
19 lines
1200 bytes
>Algol68 doesn't quite have first-class functions. You are not allowed to
>export a function out of the extent of the block that declared it,
>*especially* if it references locals of the outer block, i.e., the
>interesting and useful case.

I've heard this claim but I don't see where the language (and not some
compiler) prohibits

	begin
	  heap int i;
	  int: i+:=1
	end

If you can elucidate, please do.
-- 
16. `The wealth I lose becomes the bane           Steven Ryan: ingr!garth!smryan
of all who own or seek in vain.                    2400 Geng Road, Palo Alto, CA
It brings but death to Hreithmar's kin     Here have some grub. O they very fine
and joy of wealth no man shall win.'     baby worms cooked in the holy corn oil.
Technical Details
Message-ID: <2824@garth.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!teknowledge-vaxc!sri-unix!garth!smryan
References: <10253@orstcs.CS.ORST.EDU> <2400023@otter.hpl.hp.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!teknowledge-vaxc!sri-unix!garth!smryan
From: smryan@garth.UUCP (s m ryan)
Newsgroups: comp.lang.misc
Subject: Re: first class functions (opps)
Message-ID: <2824@garth.UUCP>
Date: 8 May 89 01:42:45 GMT
References: <10253@orstcs.CS.ORST.EDU> <2400023@otter.hpl.hp.com>
Reply-To: smryan@garth.UUCP (s m ryan)
Organization: intergraph/apd in sunny california
Lines: 19