lua-users home
lua-l archive

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


Max Ischenko wrote:
> I'm writing routines for saving/restoring Lua table to/from file 
> and I have the question: 
> How can I find out the name of object from the object, i.e 

One solution(if I understand your question correctly) is to store the 
name of the object/class in it's table:

Dog = {}
Dog["_name"] = "Dog"

Steve