Re: RFC 30 (v2) STDIN, STDOUT, and STDERR should be renamed
[email protected] (Chris Nandor) Sat, 12 Aug 2000 10:49:00 -0400
| Newsgroups | perl.perl6.language.io |
|---|---|
| Message-ID | <p04320417b5bb138f476d@[192.168.0.77]> |
I am not on the list, I just read the RFC and was a bit troubled by the following: At 8:49 +0000 2000.08.12, Perl6 RFC Librarian wrote: >Also, select() is deprecated by this new approach and can be removed. >This code block: > > $oldoutput = select($newoutput); > >Can now be written simply as reassignments: > > $oldoutput = $STDOUT; > $STDOUT = $filehandle; > >The concept of a "currently selected filehandle" is no longer necessary. >If print is called without arguments, it will call "print $STDOUT" >($STDOUT->print) which will inherit whatever print exists in whatever >object $STDOUT references. That's no different than the current state of affairs. $oldoutput = *STDOUT; *STDOUT = $filehandle; I don't see how select() is any less needed under this proposal than it is now. -- Chris Nandor | [email protected] | http://pudge.net/ Andover.Net | [email protected] | http://slashcode.com/