lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


When a lua state panics, it is no longer valid. On the other hand, if you catch something with a pcall, you can recover from the error.

Basically the question becomes "Do you want to use the state after the error." If not, you're probably better off letting it panic, as pcall imposes some amount of overhead.

-- Matthew P. Del Buono