ruby-changes:17630
From: marcandre <ko1@a...>
Date: Sat, 30 Oct 2010 10:25:48 +0900 (JST)
Subject: [ruby-changes:17630] Ruby:r29638 (trunk): * object.c: Make BasicObject.new accept no parameter.
marcandre 2010-10-30 10:25:41 +0900 (Sat, 30 Oct 2010) New Revision: 29638 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29638 Log: * object.c: Make BasicObject.new accept no parameter. Revert of r26135 [ruby-core:27080], as per [ruby-core:32952]. Modified files: trunk/ChangeLog trunk/object.c Index: ChangeLog =================================================================== --- ChangeLog (revision 29637) +++ ChangeLog (revision 29638) @@ -1,3 +1,8 @@ +Sat Oct 30 10:24:35 2010 Marc-Andre Lafortune <ruby-core@m...> + + * object.c: Make BasicObject.new accept no parameter. + Revert of r26135 [ruby-core:27080], as per [ruby-core:32952]. + Sat Oct 30 09:40:54 2010 Nobuyoshi Nakada <nobu@r...> * enum.c: use constants in id.h. Index: object.c =================================================================== --- object.c (revision 29637) +++ object.c (revision 29638) @@ -673,9 +673,9 @@ * Document-method: initialize * * call-seq: - * BasicObject.new( *args ) + * BasicObject.new * - * Returns a new BasicObject. Arguments are ignored. + * Returns a new BasicObject. */ /* @@ -2515,7 +2515,7 @@ #undef rb_intern #define rb_intern(str) rb_intern_const(str) - rb_define_private_method(rb_cBasicObject, "initialize", rb_obj_dummy, -1); + rb_define_private_method(rb_cBasicObject, "initialize", rb_obj_dummy, 0); rb_define_alloc_func(rb_cBasicObject, rb_class_allocate_instance); rb_define_method(rb_cBasicObject, "==", rb_obj_equal, 1); rb_define_method(rb_cBasicObject, "equal?", rb_obj_equal, 1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/