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

Re: announcing a new op, OP_MULTICONCAT

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
October 25, 2017 22:23
Subject:
Re: announcing a new op, OP_MULTICONCAT
Message ID:
20171025222257.GR3083@iabyn.com
On Wed, Oct 25, 2017 at 03:40:15PM -0000, Father Chrysostomos wrote:
> Dave Mitchell wrote:
> > * It's very good at handling the LHS appearing on the RHS; for example in
> > 
> >     $x = "abcd";
> >     $x = "-$x-$x-";
> 
> If FETCH on a tied $x returns different values each time, does it con-
> tinue to behave the same way as currently?

Yes - if a RHS arg is tied, it calls FETCH() for each appearance, and
makes a separate mortal copy of each result.

-- 
Fire extinguisher (n) a device for holding open fire doors.

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