develooper Front page | perl.perl5.porters | Postings from July 2016

[perl #128654] [EXPERIMENT] Declared references

From:
Father Chrysostomos
Date:
July 17, 2016 18:26
Subject:
[perl #128654] [EXPERIMENT] Declared references
Message ID:
rt-4.0.18-3655-1468779986-1150.128654-75-0@perl.org
# New Ticket Created by  Father Chrysostomos 
# Please include the string:  [perl #128654]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128654 >


The declared_refs feature, which is about to be merged into blead, gives Perl 5.26.0 experimental support for declaring a reference to a variable:

    my \$x; # equivalent to \my $x

It is intended mainly for use in conjunction with refaliasing:

    my \$x = \$y;

-- 

Father Chrysostomos




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About