🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1935

Re: Two Oberon questionsREAD/NEW/FOLLOWUP

#1935
From: Tom Reid x4505
Date: Mon, 15 Apr 1991 13:23
20 lines
1391 bytes
= For some time now I have been telling my students that Modula-2 removed the
= rather pointless Pascal restriction on the type of a function result.  I
= based this claim on two observations:
= (a) the M-2 compiler which I use does allow structured values to be
=     returned;
= (b) Wirth's books on the subject avoid saying anything about it (which, as
=     above, implies "yes").
= Am I wrong?  If so, to whom do I complain?  Surely we don't have to go back
= to forcing M-2 programmers to memorise the totally artifical distinction
= between "structured" and "unstructured".
=
= Peter Moylan                   eepjm@cc.newcastle.edu.au
=

According to Wirth (Programming in Modula-2, 3rd Corrected Edition, p. 56):
"2. The result of a function procedure cannot be structured."  However, it
is not a difficult extension and many compilers have added it (FST is at
least one exception).

Tom Reid  reid@ctc.contel.com
Technical Details
Message-ID: <9104151323.AA22565@ctc.contel.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!ucbvax!CTC.CONTEL.COM!reid

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!bionet!agate!ucbvax!CTC.CONTEL.COM!reid
From: reid@CTC.CONTEL.COM (Tom Reid x4505)
Newsgroups: comp.lang.modula2
Subject: Re: Two Oberon questionsREAD/NEW/FOLLOWUP
Message-ID: <9104151323.AA22565@ctc.contel.com>
Date: 15 Apr 91 13:23:32 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@ucf1vm.cc.ucf.edu>
Organization: The Internet
Lines: 20