[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: popen read and write?
- From: gary ng <garyng2000@...>
- Date: Wed, 10 Oct 2007 21:16:48 -0700 (PDT)
--- Edgar Toernig <email@example.com> wrote:
> And how do you "peek" into stdio's input buffer?
would io.stdin:read('*a') a way to peek ? As my
understanding is that '*a' is effectively
non-blocking(just return as much as there). Or may be
not if there is nothing to read(which would be
But that still don't solve the write() can be
So I still think in lua, COPAS(effectively cooperative
multithreading as you said) is the natural way to have
deadlock free bi-directional communication for things
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.