On Tue, Dec 27, 2005 at 12:10:45AM -0500, Rob Kinyon wrote:
: Creating an array whose positions are aliases for positions in another
: array can be useful. How about
:
: my @s := @a[0,2,4] is alias;
:
: @a[2] = 3; # @s[1] == 3
: @s[1] = 4; # @a[2] == 4
:
: The default slicing behavior would default to "is copy", to preserve
: the current semantics. Does that sound reasonable?
Hmm. Assignment is already adequate for copying semantics. And binding
the individual elements can presumably be done by:
my [EMAIL PROTECTED] := @a[0,2,4];
Larry