lua-users home
lua-l archive

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


>From what I've seen, upvalues are references to objects, not to scopes. So 
since the only upvalue to z() is a, there's nothing preventing b from being 
gc'ed.

Ben

On Friday 25 April 2003 10:43 pm, Peter Hill wrote:
> The variable 'b' is no longer accessible so its contents should, ideally,
> be garbage collected. Is it? Or is the local frame containing 'a' & 'b'
> held onto because 'a' is still referenced?
>
> *cheers*
> Peter Hill

-- 
I thought my people would grow tired of killing.  But you were right,
they see it is easier than trading.  And it has its pleasures.  I feel
it myself.  Like the hunt, but with richer rewards.
		-- Apella, "A Private Little War", stardate 4211.8