lua-users home
lua-l archive

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


I'm using the following function:

function foobar()
	local s = ''
	-- lengthy computation and printing report to s
	local t = {text=s}
	function foobar()
		return %t.text
	end
	return s
end

The purpose of rewriting the function is to use value computed in the
first call. It works just fine. 

The question -- will GC be able to freed
old contents of the foobar? Doesn't %t ref. disables it?

-- 
   $ :qa
   bash: :qa: command not found