make pcall can catch legacy errors.
under review
MdONeil Resident
While SLua is still in development, would it be possible to make pcall and xpcall catch all errors, including the old LL error? Currently, the error is ignored, the test is bypassed, and an error window pops up. This is not the expected behavior when using pcall. Both the new and old functions should appear to interact with each other in both directions.
Compile this:
local success, errormsg = pcall(ll.StartAnimation, "none")
if not success then
print(errormsg)
end
Log In
M
Mercury Linden
updated the status to
under review
MdONeil Resident
I made this issue about catching legacy errors with (x)pcall because this should be the very basic, but really what it is about is a request to properly cover the base before implementing fancy features. Do not repeat the same error as LSL was plagued with and make the base seemingly behave as expected all around. Concentrate on reducing the weird quirk and caveat list as much as possible before SLua 1.0.