Path: 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> <2217@sunset.MATH.UCLA.EDU> <4466@brazos.Rice.edu> <3968@ganymede.inmos.co.uk> Reply-To: jejones@mcrware.UUCP (James Jones) Organization: Microware Systems Corp., Des Moines, Iowa Lines: 15 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