|
On 02/23/2015 01:14 AM, Soni L. wrote:
Lua 5.2 added the ability to yield thru C functions, but most functions aren't yieldable (e.g. string.gsub, load, table.sort). Does the manual require that those functions be non-yieldable? or could a conforming implementation have them be yieldable? (Also why are they not yieldable in the reference implementation?)I made several functions yieldable for my system. The most prominent one was 'require'. That makes it possible for me to debug in required scripts. It might be interesting to have a bundel of patches on the Lua Wike. The best organization would probably be one patch per function. -- Thomas |