Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[perl #67142] [BUG] ranges aren't immutable, but should be, in Rakudo

0 views
Skip to first unread message

Carl Mäsak

unread,
Jul 1, 2009, 3:24:02 PM7/1/09
to bugs-bi...@netlabs.develooper.com
# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #67142]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=67142 >


<masak> rakudo: my $r = 1..9; $r.pop; say $r.perl # pmichaud: if
ranges are immutable, how come I can pop from them?
<p6eval> rakudo 2dded8: OUTPUT«1..8␤»
<pmichaud> masak: there was a spec change at npw that declares ranges
as immutable. Rakudo hasn't caught up.
<pmichaud> masak: in particular, .pop and .shift are now gone from
that part of the spec.
<pmichaud> masak: indeed, part of the reason that rakudo hasn't caught
up is because Ranges need to be refactored to be properly Positional,
and doing that means we really need a good understanding of captures.
Hence, thediscussion today.
* masak submits rakudobug
<pmichaud> we also need to remove the tests for .pop and .shift from the suite.
<masak> I like ranges better when they're immutable.
<pmichaud> yes, me also.

Carl Mäsak via RT

unread,
Mar 20, 2010, 1:51:20 PM3/20/10
to perl6-c...@perl.org
Ranges are now immutable in master. Resolving ticket.
0 new messages