On Mon Dec 07 21:36:46 2009, masak wrote:
> <masak> rakudo: sub foo { @_[0] = "bah" }; my $a = "!"; foo($a); say $a
> <p6eval> rakudo 7ef386: !␤
> <TimToady> i'd've expected it to blow up
> * masak submits rakudobug
> <masak> TimToady: so in the default signature, @_ isn't writeable?
> <TimToady> no, it's different from P5 in that
> <masak> ok.
> <TimToady> but most P5 programs aren't modifying their parameters
> <TimToady> and we didn't want to pay the might-be-lvalue penalty anymore
> <TimToady> that was decided in about 2003 or so
> <masak> nod.

The ruling is that, since *@_ would have "is copy" semantics, so the default @_ 
should. Reference:

http://irclog.perlgeek.de/perl6/2015-11-12#i_11527317

Codified the ruling in the spectests in S06-signature/unspecified.t.

/jnthn

Reply via email to