[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Enumerable#inject is surprising me...

Nathaniel Talbott

10/9/2003 1:50:00 AM

dblack@superlink.net [mailto:dblack@superlink.net] wrote:

> > I'm still not understanding why these should be different, or how
> > "start" gets into the first one (the first block) at all.
>
> Whoops, I mean how it gets into the second one at all.

I haven't seen the fix committed yet...


Nathaniel

<:((><


1 Answer

nobu.nokada

10/9/2003 2:01:00 AM

0

Hi,

At Thu, 9 Oct 2003 10:50:09 +0900,
Nathaniel Talbott wrote:
> I haven't seen the fix committed yet...

Because of that [ruby-talk:83732] doesn't fix the true problem.

It is caused by iterator-block and rewind-by-break bug, not
Enumerable#inject specific.

--
Nobu Nakada