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
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.
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
# 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
# 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
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
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
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
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
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
$
I added tests to S04-statements/terminator.t with the following commit:
https://github.com/perl6/roast/commit/1c4c5355d9
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
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
13 matches
Mail list logo