[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ANN: sleep() patch for Lua 4.0
- From: Thatcher Ulrich <tu@...>
- Date: Thu, 27 Jun 2002 19:38:19 -0400
On Jun 27, 2002 at 04:31 -0700, Kevin Coughlan wrote:
>
> > -----Original Message-----
> > From: Thatcher Ulrich [mailto:tu@tulrich.com]
> >
> > The yield() patch I made for 4.0 still has some annoying bugs (that
> > I'm not planning to fix -- the problems go beyond my level of
> > understanding of the VM), so that may be a good reason to switch to
> > 5.0w0. On the other hand, if it's working for you, then no worries.
>
> I'm using your yield() patch, and it seems to be working fine so far
> (great, actually!). But you're scaring me with your talk of
> "annoying bugs". What bugs in particular? How worried should I be?
I'm very glad to hear it's working for you. The easiest bug to repro
is mentioned on the PowerPatches page on the wiki:
Todo: There are still some bugs surrounding error handling. For
example, from an interactive lua session, if you
'dofile("program.lua")', and program.lua does a yield(), Lua can
crash.
IIRC, I think what's going on here is that the yield() in program.lua
is supposed to issue a warning and keep executing, because it can't
safely yield. But it's not working exactly right in this case, for
whatever reason. If you don't do that sort of thing, then hopefully
it won't affect you.
--
Thatcher Ulrich
http://tulrich.com