[Oberon] Easter eggs in Oberon

Joerg joerg.straube at iaeth.ch
Thu Apr 16 08:02:37 CEST 2020


all numeric operations on a real computer with finite memory clashes with math.

i := i + 2000000000;

Jörg

> Am 15.04.2020 um 22:22 schrieb August Karlstrom <fusionfile at gmail.com>:
> 
> On 2020-04-15 21:48, Jörg wrote:
>> Introducing an additional keyword DIV makes the language slightly more complex.
>> Mapping / to the ORG.DivOp() does make the compiler simpler.
>>  i := i / 5; has no conversion rules. Its just another (simpler) form of DIV.
> The reason "/" is not used to calculate the integer quotient is because it is not the same as the quotient. In mathematics 1/2 is one half, not zero (even if C programmers don't agree). Having a notation which clashes with mathematics is not a good idea.
> 
> -- August
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon



More information about the Oberon mailing list