Klaas-Jan Stol writes: > Hello, > > I spoke (through email) with Roberto Ierusalimschy, one of the creators of > the Lua programming language, and I said that Parrot has good support for > implementing coroutines and closures (heck, they are explicitly there). > > However, in a reply, Roberto asked: > > "Are you sure Parrot support "true" coroutines? Does it integrate > coroutines and closures correctly? (For instance, a single closure may > refer to variables in several different coroutines.)"
I have no idea what he means by that, but I'm sure parrot does it. Parrot supports full contintuations, and coroutines can be implemented using continuations. I can't fathom anything you'd want to do with coroutines that parrot's continuations wouldn't allow you to do. > Mmmmm, I wouldn't know. In Lua, one can create a coroutine explicitly > (through a kind of package "coroutine", an example is included: > > co = coroutine.create(function () > for i=1,10 do > print("co", i) > coroutine.yield() > end > end) That one's easy. Is that what he means by "true" coroutine? What's a fake coroutine? Luke