lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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