From: nobu.nokada@... Date: 2004-06-15T12:58:30+09:00 Subject: Re: [Patch] Array#shift(n) Hi, At Tue, 15 Jun 2004 00:14:05 +0900, Michal Rokos wrote in [ruby-core:02991]: > > |> |I think so. #first and #last may be possible to use > > |> |ary_make_shared() too? > > |> > > |> Accepted, along with pop(n). You can submit the patch to the > > |> HEAD, nobu. > > | > > |/me have commit account as well. :) > > > > Oh, you have already updated your account. OK, you can do it by > > yourself, if you implement the version that uses ary_make_shared(). > > I'll leave it up to nobu. (I'll have a look on some other things to > cleanup) Another issue, with your patch, #first and #last return Array instance always, but #shift will return an instance of the original class. $ ./miniruby -e 'class A