[Oberon] LONGINT, RETURN & etc.

Skulski, Wojciech skulski at pas.rochester.edu
Fri Jun 9 17:30:17 CEST 2017


  ...
> 3. The RETURN statement has been discarded ..."

> While in Peter De Wachter's emulator,

MODULE Edit; (*JG 2.11.90 / NW 28.11.2015*)
 ...
  PROCEDURE Max(i, j: LONGINT): LONGINT;
    VAR m: LONGINT;
  BEGIN IF i >= j THEN m := i ELSE m := j END ;
    RETURN m
  END Max;"

Question: If RETURN was discarded and it is now a "no statement", then how can it return the result like the example above? It sounds illogical, does it not?

Wojtek


More information about the Oberon mailing list