🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6679

Re: Algol 68.

#6679
From: James Jones
Date: Thu, 08 Feb 1990 15:53
15 lines
1398 bytes
In article <3968@ganymede.inmos.co.uk> mph@inmos.co.uk (Mike Harrison) writes:
>I have just looked at my copy of the 'revised report' and can't find any 
>reference to 'ronly', [I didn't think I had come across it], so what is it?
>Some kind of pragmat (and in what implementation) ?

The LHS of an assignation has to have mode REF AMODE.  An object with some
other mode can't be assigned to--and since, unlike C, Algol 68 doesn't confuse
pointers and arrays, one can have a formal parameter with mode [] AMODE and
it will enjoy the same protection.  Sounds like the moral equivalent of
"readonly" to me.

(Apologies to fellow Algol 68 fans if I've misused the vocabulary--if I have,
you have permission to slap me with a wet REFSETY. :-)

	James Jones
Technical Details
Message-ID: <1516@mcrware.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!iuvax!mailrus!uunet!mcrware!jejones
References: <4561@scolex.sco.COM> <14214@lambda.UUCP> <PCG.90Jan29131938@rupert.cs.aber.ac.uk> <2217@sunset.MATH.UCLA.EDU> <PCG.90Feb1164820@rupert.cs.aber.ac.uk> <4466@brazos.Rice.edu> <PCG.90Feb5183407@rupert.cs.aber.ac.uk> <3968@ganymede.inmos.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!iuvax!mailrus!uunet!mcrware!jejones
From: jejones@mcrware.UUCP (James Jones)
Newsgroups: comp.lang.misc
Subject: Re: Algol 68.
Summary: to ref or not to ref
Message-ID: <1516@mcrware.UUCP>
Date: 8 Feb 90 15:53:49 GMT
References: <4561@scolex.sco.COM> <14214@lambda.UUCP> <PCG.90Jan29131938@rupert.cs.aber.ac.uk> <2217@sunset.MATH.UCLA.EDU> <PCG.90Feb1164820@rupert.cs.aber.ac.uk> <4466@brazos.Rice.edu> <PCG.90Feb5183407@rupert.cs.aber.ac.uk> <3968@ganymede.inmos.co.uk>
Reply-To: jejones@mcrware.UUCP (James Jones)
Organization: Microware Systems Corp., Des Moines, Iowa
Lines: 15