On 13/12/2012, at 4:57 PM, john skaller wrote:

> I'm thinking of extending the capabilities of schannels.
...


> ready_to_read: schannel -> bool

Unfortunately .. I cannot see how to use this.
Suppose you have two channels and check each one
to see if it's ready to read.

Ok, so neither of them are ready. What do you do?

So its a bad idea.

[Why? Because the answer is: yield control in the hope
another fibre will write to one of the channels.

How do you do that? 

Duh .. by reading or writing on a channel.
It's easy to program a "select" operation
without the suggested new feature.]

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to