# Use of STDOUT.flush after puts

**URL:** <https://www.ruby-forum.com/t/use-of-stdout-flush-after-puts/187740>\
**Category:** Ruby\
**Created:** [April 28, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/use-of-stdout-flush-after-puts/187740 "2010-04-28T17:41:57Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [April 30, 2010, 12:35pm UTC](https://www.ruby-forum.com/t/use-of-stdout-flush-after-puts/187740/21 "2010-04-30T12:35:09Z")

</div>

On Fri, Apr 30, 2010 at 9:43 AM, Charles Oliver N.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![alexd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/96bed5/32.png) [@alexd](https://www.ruby-forum.com/u/alexd)\
**Post date:** [April 30, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/use-of-stdout-flush-after-puts/187740/22 "2010-04-30T18:06:35Z")

</div>

On 4/30/10, Robert K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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…

[Previous page](https://www.ruby-forum.com/t/use-of-stdout-flush-after-puts/187740.md?page=1)
