[Top][All Lists]

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

Re: [bug-gawk] Adding an API hook to enable a select extension

From: Eli Zaretskii
Subject: Re: [bug-gawk] Adding an API hook to enable a select extension
Date: Fri, 31 May 2013 18:29:25 +0300

> Date: Fri, 31 May 2013 11:14:39 -0400
> From: "Andrew J. Schorr" <address@hidden>
> Cc: address@hidden, address@hidden
> On Fri, May 31, 2013 at 06:04:59PM +0300, Eli Zaretskii wrote:
> > Gawk is about reading input and writing output.  The question we
> > should be asking ourselves is "why would a Gawk program want to call a
> > function like 'select' or 'poll'?"  It certainly will have some
> > relation to either reading or writing (or both).
> That's pretty much inherent in the nature of select.  It allows you
> to determine when file descriptors are ready for reading or writing...

If a program calls select, it wants to read after that, if data is
available.  Isn't it better to allow a paradigm "read if available"
than provide 2 separate building blocks for that?

> Do you have a specific proposal?

No.  I was trying to prompt people to think about that.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]