Uniqueness of references
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Uniqueness of references
- From: "Martin Stone" <Martin.Stone@...>
- Date: 2002年1月22日 15:27:20 -0000
If I get two references to the same Lua object with lua_ref(), should they have the same integer value?
I'm trying to match objects passed in subsequent calls to my API:
function myFunc() ... end
registerObject(myFunc)
...
unregisterObject(myFunc)
Currently when I try to compare the references obtained in my C implementations of these registration functions, I get different values. Is this right? Is there a way around it?