🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3823

Mea culpa (was: Re: Re: Algol68 (and standards diatribe))

#3823
From: Dr A. N. Walker
Date: Mon, 13 May 1991 16:52
19 lines
1406 bytes
In article <1991May10.162820.2662@maths.nott.ac.uk> I wrote

    [re a delivered procedure in Algol using a scoped variable "x"]

>	You could always declare "HEAP REAL x" to give "x" global scope,
>and then your procedure would work anywhere,

	I shouldn't post on Friday afternoons!  I started to have nagging
doubts as I drove home, wondering how to do garbage collection efficiently.
My copy of the Report is on loan elsewhere, but assuming that Lindsey and
van der Meulen are right [and they usually are], the procedure is indeed
scoped by the range of "x", not the scope of "x".  Thus, the above is not
true, and Steve Knight had a point.  This is still not unorthogonal (*all*
procedures are scoped this way, there is nothing special about procedures
being returned as results), but it is certainly unobvious.

-- 
Andy Walker, Maths Dept., Nott'm Univ., UK.
anw@maths.nott.ac.uk
Technical Details
Message-ID: <1991May13.165257.9727@maths.nott.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mcsun!ukc!strath-cs!nott-cs!piaggio!anw
References: <1991May10.162820.2662@maths.nott.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mcsun!ukc!strath-cs!nott-cs!piaggio!anw
From: anw@maths.nott.ac.uk (Dr A. N. Walker)
Newsgroups: comp.lang.misc
Subject: Mea culpa (was: Re: Re: Algol68 (and standards diatribe))
Message-ID: <1991May13.165257.9727@maths.nott.ac.uk>
Date: 13 May 91 16:52:57 GMT
References: <1991May10.162820.2662@maths.nott.ac.uk>
Reply-To: anw@maths.nott.ac.uk (Dr A. N. Walker)
Organization: Maths Dept., Nott'm Univ., UK.
Lines: 19