lua-users home
lua-l archive

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


Is there some easy way to determine the userdata "type" ?
I am using work4 and a simple OO implementation...

The value I want to get is the one used as the key when building the 
new userdata/metatable. If I understand correctly, it is the key for 
a udatabox value, the two which create a table, which itself is used 
with the udatabox to represent the metatable...

This value is, as suggested, stored in the registry as the key to the 
udatabox.

I simply want to get the "name" of the metatable, the string 
identifier, so I can compare against that in a gettable handler, and 
in effect implement function overloading in my OO setup.

It needs to work in C when passed the userdata value...