lua-users home
lua-l archive

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


>From vpenquerch@cr2a-di.fr Wed May 26 12:12:28 1999
>
>Lua people: The docs say that functions are considered data, as integers
>for example. This means if I write something like:
>
>a={}
>a.b=function(a)
>  ...
>end
>
>and then write a.b=nil, will the function be garbage collected ?

Yes, definitely.
All constants (strings, other functions) used in that function will also be
collected.
--lhf