Anonymous user
Short-circuit evaluation: Difference between revisions
m
→{{header|Elena}}
Thundergnat (talk | contribs) m (→{{header|Ring}}: Remove vanity tags) |
|||
Line 896:
The choice we make is that <code>funky</code> is ordinary if the right-side expression was evaluated, and otherwise is <em>ruined</em>; attempts to access the variable give an error.
=={{header|Elena}}==
ELENA 3.
<lang elena>import system'routines.
import extensions.
[
(false, true) forEach(:i)
Line 914:
console writeLine.
console printLine(i," or ",j," = ",a(i) || $(b(j))).
console writeLine
]
]
]
{{out}}
<pre>
|