Issue #5542 has been updated by Joshua Ballanco.
This was introduced in r29638:
* object.c: Make BasicObject.new accept no parameter.
Revert of r26135 [ruby-core:27080], as per [ruby-core:32952].
Was this change in BasicObject.new intentional? If so, is it intentional that this behavior should be different than 1.9.2? If not can we have this back-ported?
----------------------------------------
Bug #5542: Ruby 1.9.3-p0 changed arity on default initialization method
http://redmine.ruby-lang.org/issues/5542
Author: Joshua Ballanco
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
The following code worked under 1.9.2-p290 but breaks with an Argument Error (1 for 0) under 1.9.3-p0:
class Foo; end
Foo.new(nil)
Furthermore, the reported arity for Object's initialize method has changed:
ruby-1.9.2-p290 :001 > Object.instance_method(:initialize).arity
=> -1
ruby-1.9.3-p0 :001 > Object.instance_method(:initialize).arity
=> 0
--
http://redmine.ruby-lang.org