lua-users home
lua-l archive

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


If you assign everything it loads to nil the garbage collector will get rid of them 
for you assuming you haven't generated any other references to them. 

For instance, say in your file you have:

Function foo (par)
  ...
  ...
end

you can later do a:

foo = nil 

________________________________________
From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of L kevin
Sent: Tuesday, October 24, 2006 11:39 PM
To: lua@bazar2.conectiva.com.br
Subject: How to unload script.

Hi, every guys:
    When i use luaL_loadfile("some.lua"), and i called aux_do(). but right now, i wanna to unload the "some.lua" script buffer, and free all objects defined in "some.lua".  
how to do this? anyone ,please give me some help.


kevin.L


________________________________________
使用世界上最大 的电子邮件系统— MSN Hotmail