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
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
$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
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*
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