Use of STDOUT.flush after puts

On Fri, Apr 30, 2010 at 9:43 AM, Charles Oliver N.
[email protected] wrote:

On Fri, Apr 30, 2010 at 2:09 AM, Robert K.

IO.popen doesn’t require IO#reopen to be available to users, so I’m
not sure what you mean by that. It may do something similar to reopen
under the covers, but that’s an implementation detail.
Gives me the opportunity to point out that JRuby1.5 completely
supports open4 now.
That is really great!

In general I feel that abstraction is the way to go.

Cheers
R.

On 4/30/10, Robert K. [email protected] wrote:

POSIX systems. Any program that wants to do something similar like
IO.popen or just wants to prevent the child’s stdout to clutter its
own output depends on the ability to do this.

I would hate to see reopen go away, but I have to agree with Charlie
that the current implementation has some pretty ugly semantics. It
seems like one ought to be able to get the same effect through
creative use of singleton classes or extend…