[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: deleting tables from C
- From: "Nick Trout" <nick@...>
- Date: Tue, 4 Nov 2003 19:10:10 -0800
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 [mailto:research@gamebrains.com]
> 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
into
> it.
> Thanks,
> Brett