[Oberon] CASE without ELSE
artur.efimov at gmail.com
Sat Feb 17 23:32:45 CET 2018
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...
More information about the Oberon