lua-users home
lua-l archive

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


On 29/03/2013 2:35 PM, Tim Hill wrote:
You're not going to be able to pull that one off. The fundamental
structure of coroutines is different from threads, and nothing you do
can really change that (aside from a VERY significant reworking of
the Lua code base).

I don't know about that, all he's talking about is conditionally injecting yeild() into the code at arbitrary points (such as the end of each statement)

This could be done manually with a syntactic substitution. The question is whether it can be done using a debug hook or similar mechanism.

Ross.