[#3006] CVS repository — "Eugene Scripnik" <hoaz@...>

Hello.

21 messages 2004/06/16
[#3008] Re: CVS repository — ts <decoux@...> 2004/06/16

>>>>> "E" == Eugene Scripnik <hoaz@gala.net> writes:

[#3009] Re: CVS repository — Michal Rokos <michal@...> 2004/06/16

Hi!

[#3057] Ruby 1.8.2 to be released. — matz@... (Yukihiro Matsumoto)

Hi,

20 messages 2004/06/23

Re: [Patch] Array#shift(n)

From: Michal Rokos <michal@...>
Date: 2004-06-16 11:03:42 UTC
List: ruby-core #3022
Hi,

On Wednesday 16 of June 2004 11:54, nobu.nokada@softhome.net wrote:
> At Wed, 16 Jun 2004 16:28:14 +0900,
>
> Michal Rokos wrote in [ruby-core:03007]:
> > > And, Michal, do you have the test cases?
> >
> > Here they come...
>
> I've just removed global variables from test_array.rb, so could
> you commit your patch replacing with a local variable?

Done.

	Michal

BTW: This part is missing in array.c:

Index: array.c
===================================================================
RCS file: /var/cvs/src/ruby/array.c,v
retrieving revision 1.149
diff -u -p -r1.149 array.c
--- array.c     16 Jun 2004 07:05:24 -0000      1.149
+++ array.c     16 Jun 2004 11:01:51 -0000
@@ -576,9 +576,10 @@ rb_ary_pop(ary)
  *  Removes the last element from <i>self</i> and returns it, or
  *  <code>nil</code> if the array is empty.
  *
- *     a = [ "a", "m", "z" ]
- *     a.pop   #=> "z"
- *     a       #=> ["a", "m"]
+ *     a = [ "a", "b", "c", "d" ]
+ *     a.pop     #=> "d"
+ *     a.pop(2)  #=> ["b", "c"]
+ *     a         #=> ["a"]
  */

 static VALUE

In This Thread

Prev Next