lua-users home
lua-l archive

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


	We are currently evaluating whether to use Lua as our scripting
language for Star Wars Galaxies. One problem we have found is that Lua
doesn't seem to catch what we consider significant errors in a script. If a
divide by 0 happens, the result is set to +inf; if an array-out-of-bounds
access happens, the result is set to nil. Is there any way to have Lua pass
these results back as an error condition to the calling C code instead
(without changing the Lua source code)?

Steve Jakab
Verant