From: Robert Dober Date: 2010-04-30T05:34:42+09:00 Subject: Re: Use of STDOUT.flush after puts On Thu, Apr 29, 2010 at 9:54 PM, Benoit Daloze wrote: > On 29 April 2010 21:06, Robert Dober wrote: > "$stdout IO The current standard output. Assignment to $stdout is not > permitted: use $stdout. > reopen instead." > (in 1.9.2 I don't have any problem on doing "$stdout =", while I usually use > $> instead) so this is obviously false and reopen will not do the trick if I want to intercept messages passed to $stdout. > ("$> IO The destination of output for Kernel#print and Kernel#printf. The > default value is > $stdout.") Hmm redfining $> instead of $stdout might indeed be a better idea for capture of "standard" output. agree with everything else. R. -- The best way to predict the future is to invent it. -- Alan Kay