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
Aliasing does not work with closures #15750
Comments
From @cpansproutperlref says:
Fixing this may require the behaviour to change incompatibly, so it really should block the end of the feature’s experimental parole. Flags: Site configuration information for perl 5.25.5: Configured by sprout at Sun Sep 4 14:05:06 PDT 2016. Summary of my perl5 (revision 5 version 25 subversion 5) configuration: Locally applied patches: @INC for perl 5.25.5: Environment for perl 5.25.5: |
From @davidnicolOn Sun, Dec 4, 2016 at 7:16 PM, Father Chrysostomos
Is there no workaround like the local named subroutine workaround $ perl -lE 'use feature 'refaliasing';my $x=33;my $y=44; sub A{ \$y = What would it break if this was to get fixed? $y is not declared -- |
The RT System itself - Status changed from 'new' to 'open' |
From @djeriusCreated by @djeriusA reference alias is not visible in a lexical subroutine defined Here's some sample code: use 5.010; use strict; use feature 'refaliasing'; sub foo { # this works as expected # this doesn't work as expected foo; And the output: Aliasing via reference is experimental at tt.pl line 11. $VAR1 = [ $VAR1 = []; Thanks! Perl Info
|
From zefram@fysh.orgDiab Jerius wrote:
That's true, and this is a duplicate of [perl #130263]. -zefram |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#130263 (status was 'open')
Searchable as RT130263$
The text was updated successfully, but these errors were encountered: