[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Coroutine inside coroutine?
- From: "FrantiÅek Fuka" <fuka@...>
- Date: Mon, 7 Apr 2008 00:08:44 +0200
I am writing an application in pure Lua (it's a Linux bash script starting with "#!/usr/bin/env lua") and I wanted to use coroutine invocation inside different coroutine. The Inner coroutine correctly yields to the outer coroutine, but when the inner coroutine finishes and outer coroutine wants to yield back to the main application, I get "attempt to yield across metamethod/C-call boundary" error.
Does this mean I cannot use coroutines inside another coroutine or is there some other problem with my application? I don't use coroutines often so there might be some other problem. But I don't use any C-calls or metamethods in my application si I am baffled.
Frantisek Fuka (yes, that IS my real name)
(and it's pronounced "Fran-tjee-shek Foo-kah")
Jabber/GoogleTalk ID: firstname.lastname@example.org