[Oberon] Multiple RETURN in a procedure
Stuff Received
stuff at riddermarkfarm.ca
Mon Oct 24 00:01:50 CEST 2022
On 2022-10-23 17:45, Chris Burrows wrote:
>
> On Mon, Oct 24, 2022 at 3:28 AM Skulski, Wojciech
> <skulski at pas.rochester.edu> wrote:
>
>
> > PROCEDURE min (x,y: INTEGER) : INTEGER;
> > BEGIN IF x < y THEN RETURN (x) ELSE RETURN (y) END END min;
>
>
> FTR, your original code would have been smaller and more efficient if
> you had used Oberon's built-in MIN function instead of writing your own.
I think that the underlying issue is: How do you write substantial
pieces of software based on a changing language?
Sincerely,
N.
>
> Regards,
> Chris Burrows
> CFB Software
> https://www.astrobe.com
>
More information about the Oberon
mailing list