RE: Array/Hash Slices, multidimensional

2004-04-16 Thread Abhijit A. Mahabal
On Fri, 16 Apr 2004, Aaron Sherman wrote: > > > @matrix... = <<1 0 0 1>>; > > In the case of: > > @matrix = <<1 2 3 4 5>>; > > You need only add the type: > > int @matrix = <<1 2 3 4 5>>; > There is no string phase, or at least should never be. > The compiler can > pre-compute the

RE: Array/Hash Slices, multidimensional

2004-04-16 Thread Aaron Sherman
On Thu, 2004-04-15 at 18:23, Austin Hastings wrote: > > @matrix... = <<1 0 0 1>>; > Keep in mind that you're using a quoting operator. For numbers, you can just > use (0, 1, 2, 3) > and probably be better understood. (The <> approach will > work, but it will take all the numbers through a str

Re: Array/Hash Slices, multidimensional

2004-04-15 Thread Luke Palmer
Austin Hastings writes: > > > > -Original Message- > > From: Abhijit A. Mahabal [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 15 April, 2004 05:13 PM > > To: [EMAIL PROTECTED] > > Subject: Array/Hash Slices, multidimensional > > > > > > As the hash syntax is being worked out, I thought it

RE: Array/Hash Slices, multidimensional

2004-04-15 Thread Austin Hastings
> -Original Message- > From: Abhijit A. Mahabal [mailto:[EMAIL PROTECTED] > Sent: Thursday, 15 April, 2004 05:13 PM > To: [EMAIL PROTECTED] > Subject: Array/Hash Slices, multidimensional > > > As the hash syntax is being worked out, I thought it'd be a good time to > ask if the following