[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Debugging coroutines
- From: Wesley Smith <wesley.hoke@...>
- Date: Tue, 26 Jan 2010 12:04:12 -0800
I'm curious why a line number hook is never called for the anonymous
functions embedded inside the coroutines in the code snippet below.
Lua doesn't report the body of the function as being active, which
seems counter intuitive to me. Clearly the code is going to be
called. What is the justification for this design?
local code = [[
local co = coroutine
local ff = co.wrap(function()
for i=1, 3 do
print("i: ", i)
For active lines numbers, I get: