lua-users home
lua-l archive

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


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?