lua-users home
lua-l archive

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


Does this free up everything properly?

a_table =
{
  a = 0,
  b = 1,
  c = 2
}
a_table = nil

...or would you have to go through each index of the table and set them to nil one by one? Actually, I'm doing it from C code, like this:

lua_Object o = lua_getglobal( "a_table" );
lua_pushnil();
lua_setglobal( "a_table" );

(I'm using Lua 3.2.2)

=^_^=
----------------------
Do you do Linux? :) 
Get your FREE @linuxstart.com email address at: http://www.linuxstart.com