[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LUA varnames access
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 9 Oct 2002 07:40:16 -0300
>But, what if I need to know the name of the table inside of the tag method.
You can't do that in general because the table may not even *have* a name.
If you know that the table is the value of a global variable, then you can
traverse the table of globals and find a name for the table (but note that
it may have several names). If you really need this, then I think the easiest
way is to store the name on the table itself.
--lhf