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

[perl #41763] [PATCH]: fix "clone" method for iterators

0 views
Skip to first unread message

Eric Hanchrow

unread,
Mar 9, 2007, 12:27:22 PM3/9/07
to bugs-bi...@rt.perl.org
# New Ticket Created by Eric Hanchrow
# Please include the string: [perl #41763]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=41763 >


I noticed that if you cloned an iterator that you had already
"shifted", the clone started at the beginning, rather than at the
original's current location.

Matt Diephouse via RT

unread,
Mar 22, 2007, 11:12:37 AM3/22/07
to perl6-i...@perl.org
On Fri Mar 09 09:27:22 2007, off...@blarg.net wrote:
> I noticed that if you cloned an iterator that you had already
> "shifted", the clone started at the beginning, rather than at the
> original's current location.

Applied in r17691 with one change: C89 specifies that all variable declarations have to be at the
beginning of a block, so I had to move one of the lines so that this was the case. Please watch
for this in the future.

Thanks!

--
Matt Diephouse


0 new messages