Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread Todd Chester
> wrote: > On Tue, Jun 19, 2018 at 10:50 PM, Todd Chester mailto:toddandma...@zoho.com>> wrote: >> Dear Perl Developers, >> >> Would you please fix this `perl6 -c` checker error? >> >> $ perl6 -v >> This is Rakudo version 2018.05 buil

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread JJ Merelo
> > On Wed, Jun 20, 2018 at 9:59 PM, Todd Chester > What is a BEGIN block? BEGIN is one of the "phasers" that are used in Perl 6 https://docs.perl6.org/language/phasers#index-entry-Phasers__BEGIN-BEGIN It marks a block of code for running as soon as possible, and if possible during compile time

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread Larry Wall
On Wed, Jun 20, 2018 at 10:58:01PM -0700, Brent Laabs wrote: : -c does compile time warnings, not runtime warnings. You can't make : runtime warnings appear at compile time without using a BEGIN block. That's perhaps a bit oversimplified, since in this case the warning is coming out of the optimi

Re: using run

2018-06-21 Thread Brad Gilbert
:out can take an argument On Wed, Jun 20, 2018 at 10:32 AM Theo van den Heuvel wrote: > > Hi all, > > trying to make sense of the documentation on run: > https://docs.perl6.org/routine/run. > In particular the last part. I don't understand the adverbs :out and : > err there. > Can I set it up so

Re: using run

2018-06-21 Thread Theo van den Heuvel
Hi Brad, Ha. Now that is exactly what I was looking for. It felt a bit clumsy having to first collect the material in a string and then print that string. This is nice. Thanks, Theo Brad Gilbert schreef op 2018-06-21 19:47: :out can take an argument ... my $fh = open 'foo.txt',

Re: a `pe4rl6 -c` error to fix

2018-06-21 Thread ToddAndMargo
On 06/21/2018 08:42 AM, Larry Wall wrote: On Wed, Jun 20, 2018 at 10:58:01PM -0700, Brent Laabs wrote: : -c does compile time warnings, not runtime warnings. You can't make : runtime warnings appear at compile time without using a BEGIN block. That's perhaps a bit oversimplified, since in this

[perl #124998] [BUG] Type of $¢ is Any instead of Cursor

2018-06-21 Thread Will Coleda via RT
On Wed, 27 Jul 2016 12:29:11 -0700, coke wrote: > Here's the test: > > my $c; > ok 'abc' ~~ /.{ $c = $¢ }/, 'current match state'; > #?rakudo todo 'Type of $¢ is Any instead of Cursor - RT #124998' > is $c.WHAT, Cursor.WHAT,'got right type'; > > This might be a faulty test, however: >

[perl #124998] [BUG] Type of $¢ is Any instead of Cursor

2018-06-21 Thread Will Coleda via RT
On Wed, 27 Jul 2016 12:29:11 -0700, coke wrote: > Here's the test: > > my $c; > ok 'abc' ~~ /.{ $c = $¢ }/, 'current match state'; > #?rakudo todo 'Type of $¢ is Any instead of Cursor - RT #124998' > is $c.WHAT, Cursor.WHAT,'got right type'; > > This might be a faulty test, however: >

[perl #116595] [BUG] Nesting wrapping roles bind 'callsame' to the wrong recipient in Rakudo

2018-06-21 Thread Will Coleda via RT
On Wed, 30 Jan 2013 07:17:38 -0800, masak wrote: > rn: role F[$n] { method x { callsame; callsame until $.v % $n } > }; class S { has $.v is rw = 1; method x { ++$.v } }; my $s = S.new; for > ^3 { $s.x; say $s.v; $s = $s but F[$s.v] } > niecza v24-18-gaf64300: OUTPUT«2␤3␤5␤» > ..rakudo b3fc32:

[perl #116595] [BUG] Nesting wrapping roles bind 'callsame' to the wrong recipient in Rakudo

2018-06-21 Thread Will Coleda via RT
On Wed, 30 Jan 2013 07:17:38 -0800, masak wrote: > rn: role F[$n] { method x { callsame; callsame until $.v % $n } > }; class S { has $.v is rw = 1; method x { ++$.v } }; my $s = S.new; for > ^3 { $s.x; say $s.v; $s = $s but F[$s.v] } > niecza v24-18-gaf64300: OUTPUT«2␤3␤5␤» > ..rakudo b3fc32:

Announce: Rakudo Perl 6 compiler, Release #124 (2018.06)

2018-06-21 Thread Aleks-Daniel Jakimenko-Aleksejev
On behalf of the Rakudo development team, I’m very happy to announce the June 2018 release of Rakudo Perl 6 #124. Rakudo is an implementation of Perl 6 on the Moar Virtual Machine[^1]. This release implements the 6.c version of the Perl 6 specifications. It includes bugfixes and optimizations on t