lua-users home
lua-l archive

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


Jakab, Steve wrote:
> ...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)? 

The array-out-of-bounds can be handled within lua using the "index" tag.

See: http://www.tecgraf.puc-rio.br/lua/manual/manual.html#4.8

Steve