[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 Feature Request
- From: David Kastrup <dak@...>
- Date: Tue, 08 Apr 2008 13:09:57 +0200
"Alexandr Leykin" <leykina@gmail.com> writes:
> I will propose simple-coroutine:
>
> do
> --block1
> some code
> end
> also
> do
> -- block2
> some again
> end
>
> also - keyword.
> block1 and block2 will be running together (in different thread)
That's not "coroutine" but "multithreading". The whole point of
coroutines is that control is passed synchronously, and that is what Lua
"threads" do.
--
David Kastrup