Constrained genericity: Difference between revisions
m
→{{header|ooRexx}}: add output
(Added Kotlin) |
Walterpachl (talk | contribs) m (→{{header|ooRexx}}: add output) |
||
Line 962:
Tests for identity need to be performed at runtime using mechanisms
such as the object isA method.
<lang ooRexx>call dinnerTime "yogurt"
call dinnerTime .pizza~new
call dinnerTime .broccoli~new
Line 991 ⟶ 990:
return
end
else dish~eat</lang>
{{out}}
<pre>I can't eat that!
mmmmmmmm, pizza.
ugh, do I have to?.</pre>
=={{header|OxygenBasic}}==
|