[perl #125618] [REGEX] Positional capture of separator on ?% operator causes compiler error

2018-02-11 Thread Aleks-Daniel Jakimenko-Aleksejev via RT
So I looked at this, and at very best the proposed error message is wrong. It says that ? is useless when used with %%, but that's not the case: m: say ‘af’|‘a’|‘f’|‘’ ~~ /a? %% f/ rakudo-moar 00af9ce27: OUTPUT: «「af」␤「a」␤「f」␤「」␤» m: say ‘af’|‘a’|‘f’|‘’ ~~ /a?f?/ rakudo-moar 00af9ce27:

[perl #125618] [REGEX] Positional capture of separator on ?% operator causes compiler error

2018-02-11 Thread Zoffix Znet via RT
On Wed, 15 Jul 2015 07:31:55 -0700, lue wrote: > m: say "ab" ~~ /^ a +% (b) $/ > rakudo-moar e4077e: OUTPUT«Nil␤» > m: say "ab" ~~ /^ a *% (b) $/ > rakudo-moar e4077e: OUTPUT«Nil␤» > m: say "ab" ~~ /^ a ?% (b) $/ > rakudo-moar e4077e: OUTPUT«===SORRY!===␤QAST::Block with > cuid

[perl #125618] [REGEX] Positional capture of separator on ?% operator causes compiler error

2018-02-11 Thread Zoffix Znet via RT
On Wed, 15 Jul 2015 07:31:55 -0700, lue wrote: > m: say "ab" ~~ /^ a +% (b) $/ > rakudo-moar e4077e: OUTPUT«Nil␤» > m: say "ab" ~~ /^ a *% (b) $/ > rakudo-moar e4077e: OUTPUT«Nil␤» > m: say "ab" ~~ /^ a ?% (b) $/ > rakudo-moar e4077e: OUTPUT«===SORRY!===␤QAST::Block with > cuid

[perl #128880] [BUG] Dead code in HyperWhatever, 「.new」 is not supposed to work but it does (HyperWhatever.new)

2018-02-11 Thread Zoffix Znet via RT
On Tue, 09 Aug 2016 15:25:11 -0700, alex.jakime...@gmail.com wrote: > Let's look at the code in Rakudo! From src/core/Whatever.pm > > my class HyperWhatever { > multi method new(HyperWhatever:) { X::Cannot::New.new(class => > self).throw } > … > } > > So it seems like it should throw a warning

[perl #128880] [BUG] Dead code in HyperWhatever, 「.new」 is not supposed to work but it does (HyperWhatever.new)

2018-02-11 Thread Zoffix Znet via RT
On Tue, 09 Aug 2016 15:25:11 -0700, alex.jakime...@gmail.com wrote: > Let's look at the code in Rakudo! From src/core/Whatever.pm > > my class HyperWhatever { > multi method new(HyperWhatever:) { X::Cannot::New.new(class => > self).throw } > … > } > > So it seems like it should throw a warning