[Oberon] Multiple RETURN in a procedure

Chris Burrows cfbsoftware at gmail.com
Mon Oct 24 02:00:52 CEST 2022


On Mon, Oct 24, 2022 at 9:53 AM Skulski, Wojciech <skulski at pas.rochester.edu>
wrote:

> In Linz V4 TextFrames.Mod, you will find a very complex PROCEDURE Edit (F:
> Frame; x, y: INTEGER; keysum: SET); In that procedure you will find three
> RETURNs. Would you advocate reworking this pretty intricate piece, if
> someone ever dares to port V4 to FPGA Oberon? Will this brave soul not have
> better things to do rather than fixing an optimization of the language?
>
> That's a perfect example of why multiple RETURNs should not be allowed.
There's a corresponding version of textFrames.Edit in Project Oberon. Wirth
apparently believed the improvement to the language outweighed the effort
of having to rework it for project Oberon 2013 - and he had a choice. I
thank him for having the courage of his convictions.

Regards,
Chris Burrows
CFB Software
https://www.astrobe.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20221024/d75ace71/attachment.html>


More information about the Oberon mailing list