develooper Front page | perl.perl5.porters | Postings from November 2009

Re: [PATCH] Perl RT#3105 Mark elements of constant range as read only

Thread Previous | Thread Next
From:
Eric Brine
Date:
November 25, 2009 08:48
Subject:
Re: [PATCH] Perl RT#3105 Mark elements of constant range as read only
Message ID:
f86994700911250817h20d1b44s8618f30703ac2e80@mail.gmail.com
On Wed, Nov 25, 2009 at 3:26 AM, Abigail <abigail@abigail.be> wrote:

> On Tue, Nov 24, 2009 at 07:52:38PM -0500, Eric Brine wrote:
> > Hi,
> >
> > This makes 1..5 no different than 1,2,3,4,5 in terms of functionality,
> and
> > avoids some very subtle bugs.
> >
>
>
> It does however have the potential to break code.
>

Yes. Specifically, it'll break code (noisily) that modifies what Perl treats
as constants. I even had to fix such a bug in t/op/mydef.t. This is what the
submitter and the responders requested. If you'd rather I do it differently,
I'm up to giving it a go.


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