Re: perl6-synopsis svn

2007-02-23 Thread Agent Zhang
On 2/23/07, Blair Sutton [EMAIL PROTECTED] wrote: Sorry if this is a silly question but I haven't been able to find the answer. Is the perl6-synopsis SVN repository publicly available or is it in the same repository as that of Parrot or Pugs? I think you're looking for this:

[S09] Whatever indices and shaped arrays

2007-02-23 Thread Jonathan Lang
From S09: When you use * with + and -, it creates a value of Whatever but Num, which the array subscript interpreter will interpret as the subscript one off the end of that dimension of the array. Alternately, *+0 is the first element, and the subscript dwims from the front or back depending on

Re: [S09] Whatever indices and shaped arrays

2007-02-23 Thread Larry Wall
On Fri, Feb 23, 2007 at 10:49:34AM -0800, Jonathan Lang wrote: : That said, I think I can do one better: : : Ditch all of the above. Instead, '*' always acts like a list of all : valid indices when used in the context of postcircumfix:[ ]. Ooh, shiny! Or at least, shiny on the shiny side... :

Re: [S09] Whatever indices and shaped arrays

2007-02-23 Thread Jonathan Lang
Larry Wall wrote: On Fri, Feb 23, 2007 at 10:49:34AM -0800, Jonathan Lang wrote: : That said, I think I can do one better: : : Ditch all of the above. Instead, '*' always acts like a list of all : valid indices when used in the context of postcircumfix:[ ]. Ooh, shiny! Or at least, shiny on

Re: [S09] Whatever indices and shaped arrays

2007-02-23 Thread Luke Palmer
On 2/23/07, Jonathan Lang [EMAIL PROTECTED] wrote: ' I'm still debating the boolean context myself. I _think_ it will work; but I have a tendency to miss intricacies. You might instead want to require someone to explicitly check for definedness or existence instead of merely truth; or you