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
B::Deparse fail on "my" with attributes #9946
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgInvestigating around a B::Deparse problem that Nicholas just reported, $ perl -MO=Deparse -e 'my $pi :shared = 4' Note that \$pi is referenced before "my $pi" comes into scope, so the Perl Info
|
@pjf - Status changed from 'new' to 'open' |
From @cpansproutThis is even more amusing than what our $foo:shared (#70201) produces: $ ./perl -Ilib -MO=Deparse -e 'my $x :shared = 4' $ ./perl -Ilib -MO=Deparse -E 'state $x :shared = 4' Flags: Site configuration information for perl 5.13.7: Configured by sprout at Thu Dec 9 14:53:58 PST 2010. Summary of my perl5 (revision 5 version 13 subversion 7) configuration: Locally applied patches: @INC for perl 5.13.7: Environment for perl 5.13.7: |
From zefram@fysh.orgFather Chrysostomos wrote:
This is a duplicate of [perl #70205]. -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Sun Dec 12 12:38:35 2010, zefram@fysh.org wrote:
So it is. Thank you. Interestingly, you wrote it that ticket:
That’s exactly what I was doing. :-) |
From [Unknown Contact. See original ticket]On Sun Dec 12 12:38:35 2010, zefram@fysh.org wrote:
So it is. Thank you. Interestingly, you wrote it that ticket:
That’s exactly what I was doing. :-) |
Back in November 2009, Zefram reported this:
Running that command in perl-5.38 today, I got:
Now, I don't know enough about B::Deparse to know whether the current code is correct or not. However, I became curious as to when the output changed. I wrote a test file, tested it with various production releases installed via
Bisection pointed to this commit:
@iabyn, does that make this ticket closable? Note: Back in 2009, there was a companion ticket created by @nwc10 for the case of
|
On Sun, Oct 29, 2023 at 03:23:00PM -0700, James E Keenan wrote:
@iabyn, does that make this ticket closable?
Yes.
**Note:** Back in 2009, there was a companion ticket created by @nwc10 for the case of `our` variables: #9944. The output Nick reported there (and found anomalous) is unchanged in perl-5.38.
```
$ perl -MO=Deparse -e 'our $pi :shared = 4'
use attributes ('main', \undef, 'shared');
our $pi = 4;
-e syntax OK
Yeah, that still needs fixing.
…--
If life gives you lemons, you'll probably develop a citric acid allergy.
|
Migrated from rt.perl.org#70205 (status was 'open')
Searchable as RT70205$
The text was updated successfully, but these errors were encountered: