New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C-style for loop does not give an error #637
Comments
From @szabgabfor (my $i = 1; $i <= 3; $i++) { say $i; } prints 2 instead of giving an intelligent error message that one should use loop Gabor |
From @markjreedOn Sat, Jan 17, 2009 at 5:44 PM, via RT Gabor Szabo
A warning, surely? As far as I can tell, the above is perfectly legal -- |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzOn Sat Jan 17 14:44:21 2009, szabgab@gmail.com wrote:
Since the for-loop is legal syntax, you should try to bug Larry to make Cheers, |
@moritz - Status changed from 'open' to 'stalled' |
From Andy_Bach@wiwb.uscourts.gov
$ perl6 -e ' for (my $i = 1; $i <= 3; $i++) { say $i; }' $ perl6 -e ' for (my $i = 1; $i <= 3; $i++) { say $i; say $_ }' So the "++" is applied before the loop body but after the assignment to $_ a Andy Bach History will have to record that the greatest tragedy of this period |
The RT System itself - Status changed from 'stalled' to 'open' |
From @cokeOn Tue Jan 20 09:25:16 2009, moritz wrote:
This appears to be resolved: 21:10 < coke> std: for (my $i = 1; $i <= 3; $i++) { say $i; } Needs tests, though. -- |
From @moritznow tested in S04-statements/for.t |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#62478 (status was 'resolved')
Searchable as RT62478$
The text was updated successfully, but these errors were encountered: