On Tue, 22 Mar 2016 07:10:54 -0700, elizabeth wrote: > > > On 21 Mar 2016, at 16:41, Elizabeth Mattijsen (via RT) <perl6-bugs- > > follo...@perl.org> wrote: > > > > # New Ticket Created by Elizabeth Mattijsen > > # Please include the string: [perl #127756] > > # in the subject line of all future correspondence about this issue. > > # <URL: https://rt.perl.org/Ticket/Display.html?id=127756 > > > > > > > use nqp; my str @a = "a".."e"; nqp::setelems(@a,0); > > nqp::setelems(@a,5); say @a.join(":”) > > a:b:c:d:e > > > > expected: > > :::: > > > > > > same for int / num arrays. > > And the same for Bufs.reallocate: > > $ 6 'dd Buf.allocate(10, (1,2,3)).reallocate(0).reallocate(5)' > Buf.new(1,2,3,1,2)
Thank you for the report. This is now fixed. Fix: https://github.com/MoarVM/MoarVM/commit/43c926f9e0 https://github.com/perl6/nqp/commit/e64fb5b44b https://github.com/rakudo/rakudo/commit/e5bb9bd20cdd319 Tests: https://github.com/perl6/roast/commit/20b76e6274969787e https://github.com/perl6/roast/commit/946e42eb08 Unfudge: https://github.com/perl6/roast/commit/8533ec69249bf2b30