lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


"This event only happens while Lua is executing a Lua function."

I think that you misunderstood that caveat sentence.
At any time, Lua can only be executing either a Lua function or a C
function, and nothing else.
So this sentence could be equally expressed in the opposite way:

"This event does not happens while Lua is executing a C function."

What you have in mind in that the sentence was opposing a Lua function
versus a Lua *chunk*.
But every Lua snippet becomes a Lua function after compilation !
So in your example, you were actually running inside a Lua function.