function foo() {
try {
return "foo";
} finally {
return "bar";
}
}
print(foo());
function foo()
xpcall(function()
return "foo"
end,
function(e)
end)
return "bar"
end
print(foo()); --Prints "bar"
The return statement only returns out of the function passed to xpcall. I'm not totally sure what a good way to deal with this would be.
The return statement only returns out of the function passed to xpcall. I'm not totally sure what a good way to deal with this would be.