Re: next

2017-06-18 Thread ToddAndMargo
On Sun, Jun 18, 2017 at 11:41 PM, ToddAndMargo > wrote: On 06/17/2017 12:22 AM, yary wrote: last if ++$true_count == 6; Hi Yary, ++$true_count Is that the same as `$true_count + 1` ? And does it alter the value of $true_count? -

Re: next

2017-06-18 Thread Brandon Allbery
On Mon, Jun 19, 2017 at 12:41 AM, ToddAndMargo wrote: > On 06/17/2017 12:22 AM, yary wrote: > >> last if ++$true_count == 6; >> > > ++$true_count > > Is that the same as `$true_count + 1` ? > > And does it alter the value of $true_count > Yes and yes, just like in C and Perl 5; note that being p

Re: next

2017-06-18 Thread Stephen Wilcoxon
In this instance, it is the same as "$true_count = $true_count + 1". ++$var and $var++ differ if they are used in an assignment or other operation. For instance: my $x = 1; my $y = ++$x; # $x is incremented before assignment my $z = $x++; # $x is incremented after assignment At the end, $x = 3

Re: next

2017-06-18 Thread ToddAndMargo
On 06/17/2017 12:22 AM, yary wrote: last if ++$true_count == 6; Hi Yary, ++$true_count Is that the same as `$true_count + 1` ? And does it alter the value of $true_count? -T

Re: next

2017-06-18 Thread ToddAndMargo
On 06/16/2017 09:11 PM, Gabor Szabo wrote: I probably would not say "restart" the loop. It goes to the*next* iteration of the loop: I used "restart" because I wanted myself to think it went back to the top, ignoring everything else in the {} and proceeded to the next item in the loop. I was

[perl #131481] [BUG] No perl6-debug

2017-06-18 Thread Zoffix Znet via RT
The debugger's fixed now in https://github.com/rakudo/rakudo/commit/6d4691fbd91d7f54b8af55522845633e7adf4736 Tests (in rakudo's test suite) needed.

[perl #131481] [BUG] No perl6-debug

2017-06-18 Thread Zoffix Znet via RT
The debugger's fixed now in https://github.com/rakudo/rakudo/commit/6d4691fbd91d7f54b8af55522845633e7adf4736 Tests (in rakudo's test suite) needed.

[perl #131599] [BUG] "my %hash is default([])" misbehaves

2017-06-18 Thread via RT
# New Ticket Created by Michael Schaap # Please include the string: [perl #131599] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131599 > #!/usr/bin/env perl6 my %sum{Int} is default([]); %sum{4}.push: "1+3"; %sum{4}.push: "