[Oberon] Easter eggs in Oberon

Joerg joerg.straube at iaeth.ch
Mon Apr 13 22:37:34 CEST 2020


Chris

Why is there an INC if you have +
Why is there an ASR if there is a DIV
Why is there an LSL if there is a *

Why do you have to change THREE things when going from INTEGER to REAL
   i := i DIV 5;
   r := FLT(i) / 5.0

Jörg

> Am 13.04.2020 um 22:25 schrieb Chris Burrows <chris at cfbsoftware.com>:
> 
> Nobody forbids you state that equivalence but as it is not stated in the report it is an assumption you have made. Such an equivalence would make no practical sense to me. Why would it be necessary to have a separate DIV operator if it were true? 
> 
>> -----Original Message-----
>> From: Oberon [mailto:oberon-bounces at lists.inf.ethz.ch] On Behalf Of Joerg
>> Sent: Tuesday, 14 April 2020 4:50 AM
>> To: ETH Oberon and related systems
>> Subject: Re: [Oberon] Easter eggs in Oberon
>> 
>> August
>> 
>> Where is defined what the operator / shall do?
>> I mean who does forbid me to state / is equal to DIV if both operands are
>> INTEGER.
>> 
>> br
>> J rg
>> 
> 
> --
> 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