[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Dynamic table creation
- From: "Alex Queiroz" <asandroq@...>
- Date: Mon, 8 Jan 2007 15:08:21 -0200
Hallo,
On 1/8/07, Jimmie Houchin <jhouchin@cableone.net> wrote:
Hello,
I am parsing XML data using LuaExpat.
I am wanting to traverse the lxp.lom.parse() tables and recreate the
objects using the string from the tag as the name of the new table.
So basically how do I do something like:
'TableName' = {}
and be valid Lua?
Function environments are tables. The global environment is in
table _G, so you can write:
_G['TableName'] = {}.
--
-alex
http://www.ventonegro.org/