lua-users home
lua-l archive

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


> The PendingRef2 that is returned is the same as PendingRef - almost
> as if the call recognised that there was already an entry for
> SomePendingFunction.

They shouldn't be the same. So the problem seems to be somewhere before
the second call to lua_ref. Either the first reference was already
released (then the system may reuse the reference) or both were nil
(lua_ref always returns the same reference [-1] for nil values).

-- Roberto