Autrijus Tang skribis 2005-04-24 3:58 (+0800): > Please sanity-check the following: > pugs> my ($x, @a); $x := @a[-1]; $x = 3; @a > *** Error: Modification of non-creatable array value attempted
Pass. (For reference: The error is in the second statement.) > pugs> my ($x, @a); $x := @a[0]<x>[1]<y>; $x = 3; @a[0]<x>[1]<y> > 3 Pass. > pugs> my ($x, @a); $x := [EMAIL PROTECTED]; $x = 3 > *** Error: Can't modify constant item Pass, provided that [EMAIL PROTECTED] (@a.elems) is rvalue. If it's lvalue, then @a should grow to 3 elements instead. Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html