lua-users home
lua-l archive

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


> Is it guaranteed, for lua 4.0.1, that the return value of lua_ref(L, 1)
> is always >0?

No. Particularly, lua_ref of a nil value always returns -1. But Lua
ensures that the return value of lua_ref is always different from
LUA_NOREF. (It is the same in 5.0.)

-- Roberto