[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: introspection in Lua
- From: Steve Dekorte <steve@...>
- Date: Thu, 14 Dec 2000 12:25:32 -0800
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