[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: debug hook callback is not called from __gc metamethod
- From: "Soni L." <fakedme@...>
- Date: Tue, 19 Sep 2017 07:08:57 -0300
On 2017-09-19 02:03 AM, Paul K wrote:
I'm running the following script and no debug hook events are
generated from the __gc metamethod (even though the lines do get
print("GC") -- 3
debug.sethook(function(...) print(...) end,"clr")
collectgarbage("collect") -- 7
print("done") -- 8
The output using Lua 5.3:
"GC" is printed, but no line event is generated. I get the same result
with Lua 5.2. Is this by design?
This has been reported before (by me). I don't remember the replies.
Seems intended, tho.
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.