[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Coroutines & C boundaries
- From: David Given <dg@...>
- Date: Wed, 15 Feb 2006 00:02:42 +0000
On Tuesday 14 February 2006 07:14, you wrote:
[...]
> Your C code may need to use lua_resume rather than lua_call. Of course,
> then it needs to work in terms of coroutines rather than functions.
The good news is that switching to use a local copy of Lua 5.1w6 with Mike
Pall's Resumable VM patch now works fine. The bad news is that Lua 5.1w6 is
rather elderly and doesn't contain a number of features that are now
confirmed for 5.1 (such as string.gmatch). Also, it's crashing oddly with
valgrind complaining about uninitialised memory in index2adr, but that may
not be its fault.
Does anyone know if the resumable VM patch is available for either 5.1rc or
5.0?
I still don't know why this isn't working, either (it doesn't work on vanilla
5.1rc either).
--
+- David Given --McQ-+ "This is the captain. We have a little problem
| dg@cowlark.com | with our reentry sequence, so we may experience
| (dg@tao-group.com) | some slight turbulence and then explode." --- Mal
+- www.cowlark.com --+ Reynolds, _Serenity_
Attachment:
pgpEJPpN3_gmC.pgp
Description: PGP signature