Post by frrrstfnI read the documentation but didn't find an explicit answer.
Can be a predeclared identifier be redeclared in Oberon 07? i.e
(* redeclaring INC function *)
PROCEDURE INC;
(* mystuff here *)
END INC;
I think in Oberon the answer is yes, althougth not reccomended
You can redefine INC and the other predefined procedures. Following on from
the previous discussion here about program abortion that is yet another way
in which you could disable or modify the behaviour of ASSERTs.
However, you cannot redefine the predefined data types. The following
examples that used to be allowed in Oberon are not allowed in Oberon-07:
TYPE
...
MyInteger = INTEGER; (* Error message: 'No alias allowed' *)
INTEGER = MyType; (* Error message: 'No alias allowed' *)
If you have a Windows system, you are welcome to download the evaluation
edition of Astrobe if you want to check out a few of these sorts of things
yourself on an actual Oberon-07 compiler:
http://www.astrobe.com/download.htm
I'd be interested to know if you find anything (as long as it's not too
esoteric!) that doesn't behave as the Language Report indicates it should.
You can get an ARM board for as little as $US 50 if you want to actually run
your programs and display the output on a terminal emulator on your PC:
http://www.cfbsoftware.com/astrobe/boards.aspx
Regards,
Chris Burrows
CFB Software
Astrobe: ARM Oberon-07 Development System
http://www.astrobe.com