Moritz Lenz wrote: > Will Coleda wrote: >> On Sun, Jun 22, 2008 at 2:59 PM, Frederik Schwarzer >> <[EMAIL PROTECTED]> wrote: ... >>> But if I do: >>> my @arr = (23, 42); >>> my $temp = @arr[0]; # copy? >>> @arr[0] = @arr[1]; >>> say $temp; # 42 >>> $temp is 42 ... >>> I expected $temp to be 23 here. >>> >>> Am I missing something? [ assign.t ] > I'll probably move some of the simpler tests to a separate file to work > around these limitations for now (currently assign.t has 308 tests, > which is way above average anyway)
I did that now: http://dev.pugscode.org/changeset/20965 Attached patch adds the newly created test to spectest_regression, one failing test is fudged (marked as todo "BUG ...") -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
Index: t/spectest_regression.data =================================================================== --- t/spectest_regression.data (revision 28652) +++ t/spectest_regression.data (working copy) @@ -8,6 +8,7 @@ S02-literals/radix.t S02-polymorphic_types/subset-code.t # pure S02-polymorphic_types/subset-range.t +S03-operators/assign-is-not-binding.t S03-operators/autoincrement.t # pure S03-operators/comparison.t S03-operators/context.t