Re: C outside of C

2006-09-07 Thread Trey Harris
In a message dated Thu, 7 Sep 2006, Mark Stosberg writes: To refine this point a bit, the spec is clear that 'when' is useful not just with 'given' but with "any block that sets $_". Thanks, I was not being terribly precice when I conflated when with given. Of course, CATCH is another case whe

Re: C outside of C

2006-09-07 Thread Mark J. Reed
On 9/7/06, Mark Stosberg <[EMAIL PROTECTED]> wrote: To refine this point a bit, the spec is clear that 'when' is useful not just with 'given' but with "any block that sets $_". I agree that it should be an error outside of "any block that sets $_", I disagree. I don't see aproblem with havi

Re: C outside of C

2006-09-07 Thread Mark Stosberg
Trey Harris wrote: > markstos++ pointed out the following behavior: > > use v6-alpha; > > { > when 1 ~~ 0 { > say "Surprise!" > } > } > > This code prints "Surprise!", because $_ is undef, which is false, just > like 1 ~~ 0 is. > > I'd like to make the following suggestions

C outside of C

2006-09-07 Thread Trey Harris
markstos++ pointed out the following behavior: use v6-alpha; { when 1 ~~ 0 { say "Surprise!" } } This code prints "Surprise!", because $_ is undef, which is false, just like 1 ~~ 0 is. I'd like to make the following suggestions for Synopsis clarification: 1. It will be a