lua-users home
lua-l archive

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

On Jun 27, 2002 at 04:31 -0700, Kevin Coughlan wrote:
> > -----Original Message-----
> > From: Thatcher Ulrich []
> > 
> > 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

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