lua-users home
lua-l archive

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



On Thursday, June 12, 2003, at 10:20 AM, Adam D. Moss wrote:
I can see how this would be of some benefit for global
variables which would otherwise hang around indefinitely,
but what about short-lived local variables and the contents
of local tables, etc?

Since (I think) Lua uses a standard mark and sweep collector, this shouldn't effect collection unless a collection cycle kicks in while your function is being executed and even then, I can't see how it would have any noticeable effect unless a local you nilled out pointed to a large table structure or userdata containing a bunch of data.

Cheers,
Steve
Io, a small language: http://www.iolanguage.com/