[Oberon] PO 2013 allows one to "override" predefined procedures and functions

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Fri May 14 15:29:21 CEST 2021


Has anyone noticed that the PO 2013 allows the programmer
to “overrride” predefined procedures and functions, e.g.,

  MODULE M;
    VAR
       INC: CHAR;
       i: INTEGER;
  BEGIN
    INC := "a”;
    INC(i)           (*not a procedure*)
  END M.

This should not be allowed..




More information about the Oberon mailing list