You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some misbehaviors when a next clause is encountered on what would be the last iteration of a loop construct. An extra Mu is injected into the return value for that iteration, and the termination test may be bypassed.
m: my $b; (loop ($b = 4; $b > 0; $b--) { next if $b == 1; $b }).note # version without escaping the termination condition
(02:13:17 PM) camelia: rakudo-moar 6bb1b5: OUTPUT: «(4 3 2 (Mu))»
(02:13:25 PM) skids: still have that Mu.
On Tue, 09 May 2017 11:17:23 -0700, bri@abrij.org wrote:
There are some misbehaviors when a next clause is encountered on what
would be the last iteration of a loop construct. An extra Mu is
injected into the return value for that iteration, and the termination
test may be bypassed.
m: my $b; (loop ($b = 4; $b > 0; $b--) { next if $b == 1; $b }).note #
version without escaping the termination condition
(02:13:17 PM) camelia: rakudo-moar 6bb1b5: OUTPUT: «(4 3 2 (Mu))»
(02:13:25 PM) skids: still have that Mu.
Migrated from rt.perl.org#131281 (status was 'new')
Searchable as RT131281$
The text was updated successfully, but these errors were encountered: