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 18:15, 8 September 2017
, 6 years agono edit summary
No edit summary |
|||
Line 1,774:
errorexample.lua:34: in main chunk
[C]: ?</pre>
=={{header|Maple}}==
<lang Maple>
num_times:=0:
baz := proc()
global num_times := num_times + 1;
error `if`(num_times <= 1, "U0", "U1");
end proc:
bar:=proc()
baz(n);
end proc;
bar := proc() ... end;
foo:=proc()i;
for i from 0 to 1 do
bar();
end do;
end proc;
</lang>
=={{header|Mathematica}} / {{header|Wolfram Language}}==
|