lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Finalizers and Lua.org demo page
From
: Зайцев Михаил <zajcev.m@
...
>
Date
: Wed, 19 Jul 2017 21:11:14 +0300
This program works fine:
setmetatable({}, {__gc = function() print("Hello") end})
collectgarbage()
Maybe there is one persistent Lua process at the server side, or final garbage collection takes place after the script output is sent to you.
References
:
Finalizers and Lua.org demo page
,
Egor Skriptunoff
Prev by Date:
Finalizers and Lua.org demo page
Next by Date:
Re: Finalizers and Lua.org demo page
Previous by thread:
Finalizers and Lua.org demo page
Next by thread:
Re: Finalizers and Lua.org demo page
Index(es):
Date
Thread