Re: Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread Larry Wall
On Tue, May 01, 2007 at 05:45:26PM -0400, Mark J. Reed wrote: : Right. Something akin to P5's $SIG{__WARN__} and $SIG{__DIE__} would : also work, but that never seemed to be quite the right way to do that, : to me. Never seemed quite right to me either. Er, except way back when it did... :/ In

Re: Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread Mark J. Reed
On 5/1/07, Larry Wall <[EMAIL PROTECTED]> wrote: : I think I prefer a more significant difference between the default : targets and the POSIXy std* values that they are initialized to, like : the Ruby notion of using global variables initialized to named : constants, e.g. $stderr starts out as e

Re: Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread Larry Wall
On Tue, May 01, 2007 at 01:41:45PM -0400, Mark J. Reed wrote: : On 5/1/07, Larry Wall <[EMAIL PROTECTED]> wrote: : >The plan introduced in A06 was to leave $*('IN'|'OUT'|'ERR') bound : >to stdin, stdout, and stderr (which can still be dickered with on : >the POSIXy level, of course), and instead em

Re: Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread Mark J. Reed
On 5/1/07, Larry Wall <[EMAIL PROTECTED]> wrote: The plan introduced in A06 was to leave $*('IN'|'OUT'|'ERR') bound to stdin, stdout, and stderr (which can still be dickered with on the POSIXy level, of course), and instead emulate p5's select(FH) using a global variable $*DEFOUT for the default

Re: Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread Larry Wall
On Tue, May 01, 2007 at 09:26:38AM -0700, Jonathan Lang wrote: : On 5/1/07, brian d foy <[EMAIL PROTECTED]> wrote: : >I was thinking about default filehandles yesterday. select() doesn't : >seem to be around except as an "Unfiled" function in S16. : > : >Then, as I was looking at : > : > .say( "H

Re: Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread Jonathan Lang
On 5/1/07, brian d foy <[EMAIL PROTECTED]> wrote: I was thinking about default filehandles yesterday. select() doesn't seem to be around except as an "Unfiled" function in S16. Then, as I was looking at .say( "Hello World" ); At various times, I have seen something to the effect of each of

Default filehandles, or topicalizing filehandles, or something

2007-05-01 Thread brian d foy
I was thinking about default filehandles yesterday. select() doesn't seem to be around except as an "Unfiled" function in S16. Then, as I was looking at .say( "Hello World" ); and $ERR.say( "Hello standard error" ); I figured this might work, and does. Topicalizing a filehandle kinda