Re: [svn:perl6-synopsis] r14359 - doc/trunk/design/syn

2007-04-04 Thread Jonathan Lang
[EMAIL PROTECTED] wrote: +Arrays may also be defined with a mixture of fixed and autoextending +dimensions: + +my @calendar[12;*;24]; # Month dimension unlimited + + Move this out of the section on fixed-length arrays and into the section on multidimensional arrays; it fits most

anonymous multidim values (was Re: [svn:perl6-synopsis] r14359 - doc/trunk/design/syn)

2007-03-29 Thread Darren Duncan
At 7:28 PM -0700 3/28/07, [EMAIL PROTECTED] wrote: =head1 Multidimensional arrays +Perl 6 arrays are not restricted to being one-dimensional (that's simply +the default). To declare a multidimensional array, you specify it with a +semicolon-separated list of dimension lengths: + +my int

Re: [svn:perl6-synopsis] r14359 - doc/trunk/design/syn

2007-03-29 Thread TSa
HaloO, [EMAIL PROTECTED] wrote: +Similarly, within a C.{} indexing operation you can use C*[$idx] +to convert from standard indices to user-defined: + +@lengths{ *[2] .. Oct } # Same as: @lengths{ Jan .. Oct } Isn't that same as @length{Mar..Oct}? --

Re: anonymous multidim values (was Re: [svn:perl6-synopsis] r14359 - doc/trunk/design/syn)

2007-03-29 Thread Larry Wall
On Thu, Mar 29, 2007 at 01:21:27AM -0700, Darren Duncan wrote: : At 7:28 PM -0700 3/28/07, [EMAIL PROTECTED] wrote: : =head1 Multidimensional arrays : : +Perl 6 arrays are not restricted to being one-dimensional (that's simply : +the default). To declare a multidimensional array, you specify it