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 27, 2009 20:13
Subject:
Re: [PATCH] Perl RT#3105 Mark elements of constant range as read only
Message ID:
f86994700911272013p639eb31dibcd88018d177935a@mail.gmail.com
On Fri, Nov 27, 2009 at 5:36 PM, Ævar Arnfjörð Bjarmason
<avarab@gmail.com>wrote:

> On Wed, Nov 25, 2009 at 00:52, Eric Brine <ikegami@adaelis.com> wrote:
> > This makes 1..5 no different than 1,2,3,4,5 in terms of functionality,
> and
> > avoids some very subtle bugs.
>
> If this doesn't get accepted for 5.12


It won't.


> it would be very good to have a
> version of your change t/op/range.t and other relevant tests that
> passes with the current behavior in blead. Whatever the semantics end
> up being they need to be tested.
>

Can do. Should it prove the bug like

is( ( join ' ', map { join '', map { ++$_ } 1..4 } 1..2 ), '2345 3456' );

or just should it simply be

is( ( join '', map { ++$_ } 1..4 ), '2345' );


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