[Oberon] Question about assignment of INTEGER to REAL in Oberon-07

rochus.keller at bluewin.ch rochus.keller at bluewin.ch
Mon Dec 9 16:13:25 CET 2019

>From your previous responses I already learned that I should always have a look at the Oberon 90 language report as well.

>From the Oberon-07 report I would conclude that the assignment of an INTEGER to a REAL variable is not allowed. It states "The type of the expression must be the same as that of the designator".

Whereas the Oberon 90 report states "The type of the expression must be included by the type of the variable" which seems more natural to me. 

Can you confirm that my interpretation of the Oberon-07 report is right? Why is it bad to implicitly convert INTEGER (usually 32 bit) to REAL (usually 64 bit) in an assignment (i.e. why was type inclusion removed)? 


More information about the Oberon mailing list