garbage collection and setfenv
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: garbage collection and setfenv
- From: "Matthew Armstrong" <turkeypotpie@...>
- Date: 2008年3月18日 17:07:44 -0700
So let's say I say:
function tryThis()
myVar = { foo="baz" }
end
local env = {}
setfenv(tryThis, env)
tryThis()
My question is: when does myVar get collected? With my current testing, it seems that myVar never gets collected. If so, how do I "convince" it to be collected?