lua-users home
lua-l archive

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


>    My  question  is  If  I  use  lua_ref(L,0)  do  I  still  have to call
>   lua_unref() ?

Yes, to allow the reuse of the reference itself.

But please notice that lua 4.1 alpha is not an "official" version, and
the next official version (5.0) will not support lua_ref(L, 0) (instead,
it offers weak tables).

-- Roberto