-----Original Message-----
From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Andreas
Pirklbauer
Sent: Saturday, 5 September 2020 5:35 AM
To: Oberon List
Subject: [Oberon] Module Fonts without reference to SYSTEM
Below is one way to do it. It used ORD for pointers (undocumented feature).
If not a bug, at best I would classify the ability to use ORD to typecast a pointer to an INTEGER as a 'loophole'. Refer to the Section titled 'Loopholes' in 'Good Ideas, Through the Looking Glass', Niklaus Wirth 2005. https://people.inf.ethz.ch/wirth/Articles/GoodIdeas.pdf This loophole is exploited in several modules in Project Oberon. Fortunately all but one occurrence can be eliminated by replacing ORD(...) with SYSTEM.VAL(INTEGER, ...) as all of those modules already import SYSTEM. The remaining occurrence is in Texts.WriteReal e := ASR(ORD(x), 23) MOD 100H; (*binary exponent*) Texts does not already IMPORT SYSTEM. However, that does not matter as a more suitable replacement in this instance is: UNPK(x, e); Regards, Chris Burrows CFB Software https://www.astrobe.com/RISC5