[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: introspection in Lua
From:       Max Ischenko <max () malva ! com ! ua>
Date:       2000-12-15 6:10:35
Message-ID: 20001215081035.A713 () malva ! com ! ua
[Download RAW message or body]


	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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic