Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-06-25 Thread Daniele Alessandri
Alessandri > Sent: Wednesday, June 24, 2009 4:23 PM > > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] Review: fixes for Array#rindex and > Array#reverse_each > > > > Thanks Jim! > > > > BTW currently my repository is about one month behind. I mus

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-06-24 Thread Jim Deville
to:ironruby-core@rubyforge.org> > Subject: Re: [Ironruby-core] Review: fixes for Array#rindex and > Array#reverse_each > > Hi, > > It seems like this patch has gone unnoticed as it didn't get any review yet so > here I am, requesting for one :-) > > Thanks, > Da

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-06-24 Thread Daniele Alessandri
gt; boun...@rubyforge.org] On Behalf Of Daniele Alessandri > > Sent: Wednesday, June 24, 2009 1:30 PM > > To: ironruby-core@rubyforge.org > > Subject: Re: [Ironruby-core] Review: fixes for Array#rindex and > > Array#reverse_each > > > > Hi, > > > >

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-06-24 Thread Jim Deville
ore- > boun...@rubyforge.org] On Behalf Of Daniele Alessandri > Sent: Wednesday, June 24, 2009 1:30 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] Review: fixes for Array#rindex and > Array#reverse_each > > Hi, > > It seems like this patch has gone unnoticed as it

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-06-24 Thread Daniele Alessandri
Hi, It seems like this patch has gone unnoticed as it didn't get any review yet so here I am, requesting for one :-) Thanks, Daniele On Sun, May 31, 2009 at 13:22, Daniele Alessandri wrote: > Hi Jim, > > I'm a bit late but daytime work got in the way and then I was out of > the country for two w

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-05-31 Thread Daniele Alessandri
Hi Jim, I'm a bit late but daytime work got in the way and then I was out of the country for two weeks :-) I got rid of the duplicated logic in IListOps.ReverseIndex and ArrayOps.ReverseEach by implementing a new internal method (IListOps.ReverseEnumerateIndexes): http://github.com/nrk/ironruby/c

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-04-23 Thread Daniele Alessandri
Ha! I got caught :-) The duplicated logic is there precisely because I, too, couldn't think of a place to share that small piece of code in a good way, so I just coded it like that for now but I'll ponder about that for the next commit. OK for the specs. Thanks, Daniele On Thu, Apr 23, 2009 at 22

Re: [Ironruby-core] Review: fixes for Array#rindex and Array#reverse_each

2009-04-23 Thread Jim Deville
Can you add specs for rindex that expose the bug you fixed? Also, is there any shared place that you could put the following code: if (self.Count < originalSize) { i = originalSize - i - 1 + self.Count; originalSize = self.Count; } It would be nice to g