# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #74902] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74902 >
<masak> rakudo: sub foo(@a) { @a[1] = "NOES" }; my @a = <OH HAI>; foo(@a); say ~...@a <p6eval> rakudo 1eef08: OUTPUT«OH NOES» <masak> is this supposed to be allowed? <pmichaud> masak: I haven't seen a clear answer to that question. <masak> pmichaud: ISTR there was some wording in the spec about the readonlyness stretching 'one level down' into arrays/hashes, but I can't find it now, despite trying. <pmichaud> masak: From an implementation perspective, I see nothing but pain in trying to make that happen. <masak> pmichaud: anyway, this already fails: <masak> rakudo: sub foo(@a) { @a[0, 1] = <OH NOES> }; my @a = 0, 1; foo(@a) <p6eval> rakudo 1eef08: OUTPUT«Cannot assign to readonly value [...] <masak> so something is inconsistent, at least. * masak submits rakudobug