lua-users home
lua-l archive

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

> Just wondering, has there been any thought/work in making Lua 5.2 have
> a resumable VM (as in [1])?  This seems like a very useful mechanism
> to have a stronger coroutine system without dealing with Coco.

Yes. It is basically done. The general (and relevant) ideas came from
the patch, but the details are somewhat different. In the API, we
did not implement the lua_v* API, only the lua_i*. And those functions
also get an explicit continuation function to be called when resumming,
istead of the original function.

-- Roberto