lua-users home
lua-l archive

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

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: