[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Error source formatting
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 27 Nov 2003 12:17:13 -0200
> It would be much preferable if lua_resume() were to sprout an extra
> optional errfunc argument. But then, that would require passing the
> error function on every resume. As resumes cannot be nested anyway,
> something that sets the errfunc field of the Lua state once would do
> better.
We do not like this last solution, as it creates another hidden value
in a Lua state. But for sure lua_resume will have some way to set an
errfunc in Lua 5.1.
-- Roberto