[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: embedded lua in web based REPL
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 22 Mar 2010 11:47:43 -0300
> I'm getting more and more curious as I experiment further. From a
> technical, low-level standpoint, what exactly prevents Lua hooks from
> becoming yieldable? I'd just like to patch my own copy, if at all
> possible.
When a C hook yields, it is actually making the corresponding Lua
function (that triggered the hook) yield. The hook itself does not
need to be saved.
If a Lua hook yields, a resume should resume the Lua hook itself, not
the Lua function that hooked, so the C hook should be saved.
It is not difficult to allow the Lua hook to hook the original
Lua function (e.g., by returning a specific value).
-- Roberto
- References:
- embedded lua in web based REPL, gary ng
- Re: embedded lua in web based REPL, Shaun McVey
- Re: embedded lua in web based REPL, Sam Roberts
- Re: embedded lua in web based REPL, Jonathan Castello
- Re: embedded lua in web based REPL, Roberto Ierusalimschy
- Re: embedded lua in web based REPL, Jonathan Castello
- Re: embedded lua in web based REPL, Roberto Ierusalimschy
- Re: embedded lua in web based REPL, Jonathan Castello
- Re: embedded lua in web based REPL, Roberto Ierusalimschy
- Re: embedded lua in web based REPL, Jonathan Castello