[perl #83508] [BUG] Failed ()? captures should be Nil in Rakudo (nqp-rx)

2014-10-14 Thread Christian Bartolomaeus via RT
This works now (again): $ perl6-m -e 'x ~~ /(y)? (z)*/; say $0.defined; say $1.defined;' False True I added a test to S05-match/capturing-contexts.t with the following commit: https://github.com/perl6/roast/commit/ae245a65f6

[perl #88748] [BUG] Rakudo doesn't give a good indication of what's happened when an undeclared type is used in a 'when' clause

2014-10-14 Thread Christian Bartolomaeus via RT
As it was noted recently, Rakudo now gives the same error message as STD. I added a test to S32-exceptions/misc.t with the following commit: https://github.com/perl6/roast/commit/7396503e24 and I'm closing the ticket.

[perl #92822] [BUG] - $a\ .\ chop bug

2014-10-14 Thread Christian Bartolomaeus via RT
On the note of Pepe Schwarz I'm closing this ticket. (The test is passing and it's in t/spectest.data.) $ perl6-m -e 'my $a = helloo; $a = $a\ .\ chop; say $a;' hello

[perl #122972] [BUG] Proto regex with params isn't called correctly (possibly NYI) in Rakudo

2014-10-14 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #122972] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=122972 timotimo m: grammar Test { token TOP { Foo(1) }; proto token Foo(Int) {*}; token

[perl #122973] [BUG] Rakudo can't parse/understand SomeRole[Int]::InnerThing

2014-10-14 Thread Carl Mäsak
# New Ticket Created by Carl Mäsak # Please include the string: [perl #122973] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/Ticket/Display.html?id=122973 timotimo ven++ found this: timotimo m: role A[::T] { subset Test of Int }; say

[perl #111734] [BUG] Can't locally redefine True in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
Great, redefinition of truth works as expected! I added a test to S04-declarations/constant.t with the following commit: https://github.com/perl6/roast/commit/c855d94be4

[perl #113988] [BUG] Null PMC access when doing .fmt on the return value from .reals

2014-10-14 Thread Christian Bartolomaeus via RT
Since this was all about .sprintf being called with only one argument but two directives (also cmp. #106594) and since the Null PMC access error is gone, this ticket could be closed IMHO. On the other hand the error from sprintf doesn't look very awesome in the given case: $ perl6-m -e

[perl #114428] [BUG] Subroutines created using 'sub ::(some_constant)' get the wrong name in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
Since this works and is in roast for two years I'm closing the ticket. $ perl6-m -e 'constant name = foo; sub ::(name) () { 42 }; say foo()' 42 $ perl6-m -e 'constant name = foo; say (sub ::(name) () { 42 }).name' foo

[perl #114456] [BUG] Invocation '()' after sub declaration doesn't parse in Rakudo (but does in STD)

2014-10-14 Thread Christian Bartolomaeus via RT
This works now: $ perl6-m -e 'say sub { 5 }()' 5 $ perl6-m -e 'sub ($t) { say $t }(arf)' arf I added tests to S02-lexical-conventions/sub-block-parsing.t with the following commit: https://github.com/perl6/roast/commit/09ff5366a3

[perl #115566] [BUG] Variables declared in quasi blocks don't work in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
Just an update: Parrot no longer segfaults, but Moar does: $ perl6-m -e 'macro foo { quasi { my $a = OH HAI; say $a } }; foo' Segmentation fault $ perl6-p -e 'macro foo { quasi { my $a = OH HAI; say $a } }; foo' Cannot assign to an immutable value in any at -e:1 in block unit at -e:1 $

[perl #115842] [BUG] Comma can't be last in a compilation unit in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
I added tests to S04-statements/terminator.t with the following commit: https://github.com/perl6/roast/commit/1c4c5355d9

[perl #113988] [BUG] Null PMC access when doing .fmt on the return value from .reals

2014-10-14 Thread Carl Mäsak via RT
Christian (): So maybe instead of closing this ticket we should change the subject of this ticket to 'LTA error message when .sprintf is called with more directives than arguments (numeric)'? No need to keep it open for that, methinks. There's already

[perl #116182] [BUG] 's;' wrongly parsed as subroutine call in Rakudo

2014-10-14 Thread Christian Bartolomaeus via RT
As I understand this bug report, the problem was this: doy r: sub s () { given 9 { return 0 when $_ %% 3; 1 } }; say s; p6eval rakudo c8de2e: OUTPUT«0␤» As the subject says the s; was parsed as a subroutine call by Rakudo. Back in 2012 the bug could have been shown a bit shorter: $ perl6 -e