[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Error catching
- From: "Jakab, Steve" <sjakab@...>
- Date: Fri, 26 Jan 2001 13:03:45 -0800
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