[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: SV: How do I delete (or empty) a table in LUA 3.2?
- From: erik@... (Erik Hougaard)
- Date: Sun, 23 Mar 2003 16:16:40 +0100
The easied way is to do:
lua_dostring(L,"mytable=nil");
or use setglobal to assign nil to the table.
/Erik
-----Oprindelig meddelelse-----
Fra: owner-lua-l@tecgraf.puc-rio.br
[mailto:owner-lua-l@tecgraf.puc-rio.br]På; vegne af Terry Bayne
Sendt: 23. marts 2003 00:07
Til: Multiple recipients of list
Emne: How do I delete (or empty) a table in LUA 3.2?
>From the C API, how do I go about deleting a table, or better yet, deleting
the contents of a table via the API?
I have the 3.2 manual, but can't quite get my mind around this one.
Thanks
Terry Bayne