[Oberon] Easter eggs in Oberon

August Karlstrom fusionfile at gmail.com
Mon Apr 13 22:52:39 CEST 2020


On 2020-04-13 21:19, Joerg wrote:
> Where is defined what the operator / shall do?

In section 8.2.2 in the language report: The result of "/" is a quotient 
whereas the result of DIV is an integer quotient.

> I mean who does forbid me to state / is equal to DIV if both operands are INTEGER.

Even if we assume that the operands of "/" can be of type INTEGER you 
are then wrong because the quotient of 3 and 2 is 1.5 whereas the 
integer quotient is 1.


-- August


More information about the Oberon mailing list