[Oberon] CASE without ELSE

Arthur Yefimov artur.efimov at gmail.com
Sat Feb 17 23:32:45 CET 2018

Andreas wrote:​
​> ​
One just needs to get the order right: extended types first, base type last
(if one placed the base type at the beginning of the list, it would always
evaluate to TRUE even if M were an extension of T)

​Does it mean that CASE statement for pointer/record types work like an IF
statement? Does it sequentially check all options one by one until it hits
the right one? In this case, what does "CASE" give in comparison to using
"IS" clause,​ i.e. "IF obj IS MyViewer THEN ... ELSIF obj IS ..."?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20180218/530124c8/attachment.html>

More information about the Oberon mailing list