Re: Apropos of nothing...

2001-12-20 Thread Aaron Sherman
On Sun, Dec 16, 2001 at 03:55:10PM +1100, Damian Conway wrote: [...] And, just for laughs: $ref = [1,2]; @ary[$ref] = foo(); # probably a syntax error Ok, as far as I can recall, Larry hinted that arrays and references to arrays would be interchangable in many

Re: Apropos of nothing...

2001-12-20 Thread Piers Cawley
Aaron Sherman [EMAIL PROTECTED] writes: On Sun, Dec 16, 2001 at 03:55:10PM +1100, Damian Conway wrote: [...] And, just for laughs: $ref = [1,2]; @ary[$ref] = foo(); # probably a syntax error Ok, as far as I can recall, Larry hinted that arrays and references to

Re: Apropos of nothing...

2001-12-20 Thread Damian Conway
$val = (foo())[0]; List? Scalar, obviously. How do you figure that? (Not a criticism: I'd really like to understand your thought process here so I can assess the relative DWIMity of the two alternatives). With a possible runtime error if foo doesn't return

Re: Apropos of nothing...

2001-12-20 Thread Damian Conway
Aaron Sherman wrote: $ref = [1,2]; @ary[$ref] = foo(); # probably a syntax error Ok, as far as I can recall, Larry hinted that arrays and references to arrays would be interchangable in many contexts in P6. In this case, I can't see any reason that subscripting would *want*

Re: Apropos of nothing...

2001-12-20 Thread Piers Cawley
Damian Conway [EMAIL PROTECTED] writes: $val = (foo())[0]; List? Scalar, obviously. How do you figure that? (Not a criticism: I'd really like to understand your thought process here so I can assess the relative DWIMity of the two alternatives). I figure