# New Ticket Created by Moritz Lenz # Please include the string: [perl #60380] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=60380 >
Rakudo r32373: $ ./perl6 -e 'sub f($x) {$x++}; my $y = 2; f($y); say "still here"' still here that should die, because subroutine arguments are read-only by default. A test for that is in t/spec/S06-traits/misc.t. Note that assignment already dies as it should: $ ./perl6 -e 'sub f($x) {$x = 3}; my $y = 2; f($y); say "still here"' Cannot assign to readonly variable ... (there's now also a test for that in the same file). Moritz -- Moritz Lenz http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/