develooper Front page | perl.perl5.porters | Postings from March 2023

Re: refaliasing disrespects readonlyness of array or hash

Thread Previous | Thread Next
From:
Zefram via perl5-porters
Date:
March 23, 2023 19:22
Subject:
Re: refaliasing disrespects readonlyness of array or hash
Message ID:
ZBym/2HM44hqFlml@fysh.org
Paul "LeoNerd" Evans wrote:
>Alternatively, if we decide we should change the way they work, we
>should make sure to keep them consistent and change both of them at
>once.

I concur.  They should be consistent with each other, and I reckon that
both should change, because the current semantics make readonlyness of
a container somewhat meaningless.

>Changing the way that `local` works on SvREADONLY containers sounds
>like a rather big and invasive change to make at this point.

Yes, it's not for 5.38.  If it had just been refaliasing then it could
have been, but local is too widely used to change it at such short notice.
(When I reported the bug I thought that it was just refaliasing, and
put it down to that being an underdeveloped feature.)

-zefram

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