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

Skulski, Wojciech skulski at pas.rochester.edu
Fri May 14 16:00:35 CEST 2021


what a great feature. It could be really useful in the hands of a creative programmer. I am wondering, what would be the run time behavior of this feature. A crash? 

How did you find this feature? Would be good to get rid of it.

From: Oberon [oberon-bounces at lists.inf.ethz.ch] on behalf of Andreas Pirklbauer [andreas_pirklbauer at yahoo.com]
Sent: Friday, May 14, 2021 9:29 AM
To: Oberon List
Subject: [EXT] [Oberon] PO 2013 allows one to "override" predefined procedures and functions

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

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

This should not be allowed..

Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems

More information about the Oberon mailing list