[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Game oriented usage of Lua?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 26 May 1999 12:16:46 -0300 (EST)
>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