[Oberon] SYSTEM Modules
chris at cfbsoftware.com
Thu Nov 15 11:45:12 CET 2018
> -----Original Message-----
> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of
> Richard Hable
> Sent: Tuesday, 13 November 2018 6:18 AM
> To: oberon at lists.inf.ethz.ch
> Subject: Re: [Oberon] SYSTEM Modules
> Then, it is clear that ORD and CHR are on the safe side, because we
> can always rely on getting a valid character code from ORD and being
> able to convert it back to the original character with CHR.
> But we can not rely on SYSTEM.VAL(INTEGER,setval) to give us an
> integer value which can be converted back to a valid set value with
> SYSTEM.VAL(SET,integerval), because sets may be implemented in a way
> incompatible with integer values.
ORD is not always on the safe side. The same argument applies to ORD(setval) as SYSTEM.VAL(INTEGER, setval) does it not?
More information about the Oberon