1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* object.c: Make BasicObject.new accept no parameter.

Revert of r26135 [ruby-core:27080], as per [ruby-core:32952].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2010-10-30 01:25:41 +00:00
parent 786e4ce25a
commit af859f8d54
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Sat Oct 30 10:24:35 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
* 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@ruby-lang.org>
* enum.c: use constants in id.h.

View file

@ -673,9 +673,9 @@ rb_obj_tap(VALUE obj)
* 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 @@ Init_Object(void)
#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);