lua-users home
lua-l archive

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


> The debugging hooks should give you instruction by instruction (or maybe
> just line by line) control, while coroutines would let the scripts run until
> they are ready to "yield", and to "return" values back out of themselves at
> the "yield" points.
This sounds interesting, but scripts will be untrusted and there will be
many running at once. Therefore the yielding must be enforced, and
happen at a set rate so the script can be killed if it runs for too
long.