develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #122947] [EXPERIMENT] Lvalue references

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
October 17, 2014 19:53
Subject:
[perl #122947] [EXPERIMENT] Lvalue references
Message ID:
rt-4.0.18-18278-1413575579-1304.122947-15-0@perl.org
On Fri Oct 17 10:17:19 2014, Eirik-Berg.Hanssen@allverden.no wrote:
> On Fri, Oct 17, 2014 at 6:29 PM, Father Chrysostomos via RT
> <perlbug-followup@perl.org> wrote:
> > On Fri Oct 17 07:31:49 2014, aristotle wrote:
> >> What bugs me about `aliasing` just by itself is that it could be
> >> referring to so many things.
> >
> > I can’t think of what else it could be referring to in the context of
> > Perl programming.
> 
> For(each) loop variable ("implicit alias for each item"), glob
> assignment ("symbol table aliasing"), @_ ("aliases for the actual
> scalar parameters").

Yes, what distinguishes this is the *means* of aliasing, though it is all ultimately the same thing underneath.

> This I might describe as reference assignment, analogous to glob
> assignment.
> 
> Hey, that's what you called it in the OP.  :)
> 
> ("aliasing via reference assignment", "aliasing via for(each)
> loops", "aliasing via glob assignment", "aliasing via @_" ...)

So how about refaliasing?  (I.e., aliasing via reference.)

Ricardo Signes wrote:
> I'd then go with assign_alias or something formed from those two parts. 

But for \@x ( @array_of_arrays ) has no assignment in it.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122947

Thread Previous | Thread Next


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