lua-users home
lua-l archive

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

If the table is a global, it is an entry in the global table, 
i.e. _G[<table_name>] = nil  (You can use the pseudo-indices here or the
legacy lua_setglobal macro)

If the table is a local, you lua_setlocal()

> -----Original Message-----
> From: Brett Bibby []
> Sent: Tuesday, November 04, 2003 7:04 PM
> To: Lua List
> Subject: deleting tables from C
> Hi,
> Simple question that I can't quite figure out from reading the manual.
> How exactly do I delete lua tables and/or functions from C?  I know I
> need to set them to nil, but I'm not sure how I get the table/function
> itself rather than an element of the table and then push/set a nil
> it.
> Thanks,
> Brett