Anonymous user
Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Exceptions/Catch an exception thrown in a nested call (view source)
Revision as of 09:49, 15 March 2019
, 5 years ago→{{header|Elena}}
(Add Factor example) |
|||
Line 886:
</pre>
=={{header|Elena}}==
ELENA
<lang elena>import extensions
class U0
class U1
singleton Exceptions
{
static int i
bar()
<= baz
baz()
if (i == 0)
U0
foo()
for(i := 0
try(self bar)▼
{
}
▲ ]
}
public program()
{
Exceptions
{{out}}
<pre>
|