Is it possible? If so, I beg your help.
Sorry for my poor english.
mytable={"foo","bar","lua"} tostring(mytable) -- returns "table:12345" table_toaddress(mytable) -- returns 12345 address_totable(12345) -- returns mytable mytable = nil address_totable(12345) -- returns nil
table_toaddress(mytable)
print(0x4801c890[1])
print(0x4801c890[1])
print(myTable[1])
mytable = {2, 4, 6} -- create a table tmp = mytable -- create a variable which points to that table. This WON'T copy the table! tmp = {1, 3, 5} -- change mytable using tmp 'mytable will now contain {1, 3, 5} (and tmp as well as it is the same table in the memory)
print(mytable,tmp) for k,v in pairs(mytable) do print(k,v) end
source = {4,7,2} alternative = {} for k, v in pairs(source) do alternative[k] = v end
tmp = mytable -- create a variable which points to that table. This WON'T copy the table! tmp = {1, 3, 5} -- change mytable using tmp
tmp = {1,10,20}
temp={1,2,3,4,5} print(temp)	-- table: 0xFFFFFFFF temp=nil	-- now table with address FFFFFFFF is destoryed by lua
void print_object(lua_State* L,int n) { 	printf("%s: %X",lua_typename(L,n),lua_topointer(L,n)); }
function table_toaddress(t) 	return tostring(t):sub(8) end
function table.lookup(address) 	local address_found={} 	function lookup(n,t,a) 		if value_found then return end 		a = a or {} 		 		if type(t) =="table" then 			if a[t] then 				return 			else 				if tostring(t)==address then 					address_found=t 					return 				else 					a[t] = true 					for k,v in pairs(t) do 						lookup(k,v,a) 					end 				end	 			end 		end 	end	 	lookup("_G",_G) 	 	return address_found end