Bug #1844: Immediates Should Not Respond to :dup
http://redmine.ruby-lang.org/issues/show/1844

Author: Run Paint Run Run
Status: Open, Priority: Low
ruby -v: ruby 1.9.2dev (2009-07-08 trunk 23995) [i686-linux]

Immediate can't be dup'd but they :respond_to?(:dup). This leads to ugly logic for determining whether a value can be dup'd. I suggest that immediates return false for :respond_to?(:dup). This is consistent with methods that would raise a NotImplementedError returning false for #respond_to?.


----------------------------------------
http://redmine.ruby-lang.org