Is it an optimization?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Is it an optimization?
- From: Max Ischenko <max@...>
- Date: 2001年11月13日 09:19:12 +0200
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