[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Why does Array#first not use rb_ary_subseq?

Yukihiro Matsumoto

5/18/2007 2:10:00 PM

Hi,

In message "Re: Why does Array#first not use rb_ary_subseq?"
on Fri, 18 May 2007 22:35:08 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> writes:

|Just because it is just an implementation matter. Anyway, I will
|examine your code example, and check what we can do.

I am sorry, I was bit confused with 1.9 (trunk) and 1.8 which you are
talking about. You are right. Array#first should utilize
copy-on-write as much as it can. I will fix.

matz.

1 Answer

Stefan Rusterholz

5/18/2007 2:22:00 PM

0

Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: Why does Array#first not use rb_ary_subseq?"
> on Fri, 18 May 2007 22:35:08 +0900, Yukihiro Matsumoto
> <matz@ruby-lang.org> writes:
>
> |Just because it is just an implementation matter. Anyway, I will
> |examine your code example, and check what we can do.
>
> I am sorry, I was bit confused with 1.9 (trunk) and 1.8 which you are
> talking about. You are right. Array#first should utilize
> copy-on-write as much as it can. I will fix.
>
> matz.

Oh, I should have supplied the version. Sorry about that.
Heh, actually I'm surprised that my curiosity results in a change in
code, but happy to be of help :)

Regards
Stefan

--
Posted via http://www.ruby-....