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
"nom regression" behavior of lexicals/invoking sub before they are defined changed #3454
Comments
From @cokeS02-names-vars/variables-and-packages.t has several TODO'd tests of this sort: { my $a; Where the expectation is that the first call to the foo will return an -- |
@coke - Status changed from 'new' to 'open' |
From @cokeOn Sun Jul 20 10:33:13 2014, coke wrote:
This behavior has been in place for years now, since before Christmas. Tagging [@LARRY] to get a ruling on whether the test is any good. -- |
From @zoffixznetThe behaviour can be demonstrated without involving subs: my $a; dd $a++ And this behaviour is desired in, for example, this construct: loop { last if $++ > 42 } Whereas I can't think of a usecase where it would be useful to return an Any type object on the first ++ that would trigger warnings in the example above. So IMO the test is bogus as it expects behaviour that's undesirable. |
From @pmichaudOn Tue, Aug 23, 2016 at 10:28:26AM -0700, Will Coleda via RT wrote:
The relevant (offending?) line in the source code is https://github.com/rakudo/rakudo/blob/nom/src/core/Any.pm#L444 : multi postfix:<++>(Mu:U $a is rw) { $a = 1; 0 } Pm |
From @zoffixznetOn Sun, 20 Jul 2014 10:33:13 -0700, coke wrote:
I reworded the fudges[^1] to test for current behaviour, which IMO is |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#122346 (status was 'resolved')
Searchable as RT122346$
The text was updated successfully, but these errors were encountered: