Jump to content

Exceptions/Catch an exception thrown in a nested call: Difference between revisions

no 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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.