Aria Stewart
8/25/2006 8:26:00 PM
> This comes up often enough that I wonder if allowing IO#reopen to take a
> block would be a good idea:
>
> $stderr.reopen('/dev/null') do
> # Code here redirects to /dev/null
> end
>
> # Code outside the block behaves normally
>
> I thought this idea had been brought up before, and that there was some
> downside to this, but I can't find any references to it now.
>
> Thoughts?
Can't handle threading sanely, for one.