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
no-iteration until loop incorrectly optimised away #10236
Comments
From zefram@fysh.orgCreated by zefram@fysh.org$ perl -lwe 'sub foo { $i=0; while($i) { } } print foo()' $ These two should really behave the same. The former is compiled as Perl Info
|
From @nwc10On Wed, Mar 17, 2010 at 02:37:33PM -0700, Zefram wrote:
Historically, the return values of control structures have been "undefined". For this particular case, yes, 0 seems sane, although I'm wondering whether Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @doyFixed in 317f3b6, but only for the case of 'while', not the case of -doy |
Migrated from rt.perl.org#73618 (status was 'open')
Searchable as RT73618$
The text was updated successfully, but these errors were encountered: