Re: Undeclared routine: break used at line ...

2017-06-13 Thread Gabor Szabo
On Tue, Jun 13, 2017 at 9:33 PM, Elizabeth Mattijsen wrote: >> On Tue, Jun 13, 2017 at 8:50 PM, Elizabeth Mattijsen wrote: On 13 Jun 2017, at 19:34, Gabor Szabo wrote: I just managed to write while True { ... break if $code eq 'exit'; ... }

Re: Undeclared routine: break used at line ...

2017-06-13 Thread Elizabeth Mattijsen
> On Tue, Jun 13, 2017 at 8:50 PM, Elizabeth Mattijsen wrote: >>> On 13 Jun 2017, at 19:34, Gabor Szabo wrote: >>> >>> I just managed to write >>> >>> while True { >>> ... >>> break if $code eq 'exit'; >>> ... >>> } >>> >>> >>> I wonder if Rakudo could be more cleaver in this particular

Re: Undeclared routine: break used at line ...

2017-06-13 Thread Gabor Szabo
On Tue, Jun 13, 2017 at 8:50 PM, Elizabeth Mattijsen wrote: > >> On 13 Jun 2017, at 19:34, Gabor Szabo wrote: >> >> I just managed to write >> >> while True { >>... >>break if $code eq 'exit'; >>... >> } >> >> >> I wonder if Rakudo could be more cleaver in this particular case and >>

Re: Undeclared routine: break used at line ...

2017-06-13 Thread Elizabeth Mattijsen
> On 13 Jun 2017, at 19:34, Gabor Szabo wrote: > > I just managed to write > > while True { >... >break if $code eq 'exit'; >... > } > > > I wonder if Rakudo could be more cleaver in this particular case and > remind me to use 'last' instead of 'break'. Is the undeclared sub erro

Undeclared routine: break used at line ...

2017-06-13 Thread Gabor Szabo
I just managed to write while True { ... break if $code eq 'exit'; ... } I wonder if Rakudo could be more cleaver in this particular case and remind me to use 'last' instead of 'break'. Gabor

[perl #131567] [REGRESSION] `do LABEL: for 1 { next LABEL }` doesn't see the label since 2016.07 commit

2017-06-13 Thread Zoffix Znet via RT
On Tue, 13 Jun 2017 07:26:15 -0700, c...@zoffix.com wrote: > m: do LABEL: for 1 { next LABEL } > rakudo-moar 4aa60a: OUTPUT: «labeled next without loop construct␤ in > block at line 1␤␤» > > Bisectable points to > https://github.com/rakudo/rakudo/commit/5581b24111589683dcd50356a9de2bcf60ae3bb2

[perl #131567] [REGRESSION] `do LABEL: for 1 { next LABEL }` doesn't see the label since 2016.07 commit

2017-06-13 Thread Zoffix Znet via RT
On Tue, 13 Jun 2017 07:26:15 -0700, c...@zoffix.com wrote: > m: do LABEL: for 1 { next LABEL } > rakudo-moar 4aa60a: OUTPUT: «labeled next without loop construct␤ in > block at line 1␤␤» > > Bisectable points to > https://github.com/rakudo/rakudo/commit/5581b24111589683dcd50356a9de2bcf60ae3bb2

[perl #131567] [REGRESSION] `do LABEL: for 1 { next LABEL }` doesn't see the label since 2016.07 commit

2017-06-13 Thread via RT
# New Ticket Created by Zoffix Znet # Please include the string: [perl #131567] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131567 > m: do LABEL: for 1 { next LABEL } rakudo-moar 4aa60a: OUTPUT: «labeled next withou

Re: contains question

2017-06-13 Thread Timo Paulssen
Yup, you can use it as a method call like this: perl6 -e '"foobar".&[~~](/foo/).say' 「foo」 HTH - Timo

Re: contains question

2017-06-13 Thread Julien Simonet
Semantically, is a Regex can be "contained" by a String? As Liz wrote, a regex is "matched" against a String. Besides that, I'm wondering if the smart match operator ~~ can be used as a method call? "foobar".smart-match( /'foo'/ ).say in place of ( "foobar" ~~ /'foo'/ ).say AFAIK, it exists t

[perl #122722] [CONC] Proc::Async's streams may call &done() before last output is handled

2017-06-13 Thread jn...@jnthn.net via RT
On Tue, 16 Sep 2014 13:47:14 -0700, LeonT wrote: > On Sun Sep 07 15:36:08 2014, LeonT wrote: > > As per subject, Proc::Async's streams may call &done() before calling > > their &tap/&act for the last time. Take for example this code: > > > > my $num = @*ARGS.shift // 3; > > > > my @procs = (1..$n

[perl #122722] [CONC] Proc::Async's streams may call &done() before last output is handled

2017-06-13 Thread jn...@jnthn.net via RT
On Tue, 16 Sep 2014 13:47:14 -0700, LeonT wrote: > On Sun Sep 07 15:36:08 2014, LeonT wrote: > > As per subject, Proc::Async's streams may call &done() before calling > > their &tap/&act for the last time. Take for example this code: > > > > my $num = @*ARGS.shift // 3; > > > > my @procs = (1..$n

Re: [perl #131561] [REGRESSION] dd (0 => 1, 0 => -1, 0 => 0).MixHash Does not delete the key

2017-06-13 Thread Elizabeth Mattijsen
Thanks for the report! Fixed with https://github.com/rakudo/rakudo/commit/bf95bcb6c0 Tests will be added shortly. > On 13 Jun 2017, at 00:52, Zoffix Znet (via RT) > wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131561] > # in the subject line of all

Re: [perl #131561] [REGRESSION] dd (0 => 1, 0 => -1, 0 => 0).MixHash Does not delete the key

2017-06-13 Thread Elizabeth Mattijsen via RT
Thanks for the report! Fixed with https://github.com/rakudo/rakudo/commit/bf95bcb6c0 Tests will be added shortly. > On 13 Jun 2017, at 00:52, Zoffix Znet (via RT) > wrote: > > # New Ticket Created by Zoffix Znet > # Please include the string: [perl #131561] > # in the subject line of all