[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: introspection in Lua
- From: Max Ischenko <max@...>
- Date: Fri, 15 Dec 2000 08:10:35 +0200
Hi there, Steve Dekorte!
On Thursday, 14 of December you wrote:
>
> 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"
>
Yes, I came to it.
It's a pity that Lua doesn't have powerful introspection mechanism like
tcl's `info' command, but on the same time Lua much more efficient than Tcl.
--
Best regards, Maxim F. Ischenko.