Issue #5542 has been updated by Marc-Andre Lafortune.

Status changed from Assigned to Rejected

Hi,

>  I can access the former thread, but the later [ruby-core:32952] seems to
>  have gone missing?
>  
>  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/32952

Indeed, the archive contains only half of the discussion about the revert. It starts at [ruby-core:32932]. Matz's [ruby-core:32952] is quoted in some replies.

    http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-core/32932?32833-33811+split-mode-vertical

>  > I cannot speak for backporting this to 1.9.2.

Yugui decided against it in [ruby-core:33035] and warn instead, so I'm closing this issue.

----------------------------------------
Bug #5542: Ruby 1.9.3-p0 changed arity on default initialization method
http://redmine.ruby-lang.org/issues/5542

Author: Joshua Ballanco
Status: Rejected
Priority: Normal
Assignee: Marc-Andre Lafortune
Category: core
Target version: 1.9.3
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