[perl #74902] [BUG] Rakudo allows assignment to elements of a readonly array... except when it doesn't

2015-12-16 Thread jn...@jnthn.net via RT
On Thu Aug 27 09:22:02 2015, masak wrote: > [Coke]: no. > [Coke]: I think you misunderstood the goal of the ticket. > [Coke]: the spec said (and still *says*, I think) that the > *contents* of the array parameter are readonly. that's what the "one > level down" thing refers to. > [Coke]: Howeve

[perl #74902] [BUG] Rakudo allows assignment to elements of a readonly array... except when it doesn't

2015-08-27 Thread Will Coleda via RT
On Sat Oct 20 18:12:38 2012, coke wrote: > On Tue May 04 14:13:17 2010, masak wrote: > > rakudo: sub foo(@a) { @a[1] = "NOES" }; my @a = ; > > foo(@a); say ~@a > > rakudo 1eef08: OUTPUT«OH NOES␤» > > is this supposed to be allowed? > > masak: I haven't seen a clear answer to that question. > >

[perl #74902] [BUG] Rakudo allows assignment to elements of a readonly array... except when it doesn't

2012-10-20 Thread Will Coleda via RT
On Tue May 04 14:13:17 2010, masak wrote: > rakudo: sub foo(@a) { @a[1] = "NOES" }; my @a = ; > foo(@a); say ~@a > rakudo 1eef08: OUTPUT«OH NOES␤» > is this supposed to be allowed? > masak: I haven't seen a clear answer to that question. > pmichaud: ISTR there was some wording in the spec abou

[perl #74902] [BUG] Rakudo allows assignment to elements of a readonly array... except when it doesn't

2010-05-04 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74902] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=74902 > rakudo: sub foo(@a) { @a[1] = "NOES" }; my @a = ; foo(@a); say ~...@a rakudo 1eef08: O