From: Lin Jen-Shin Date: 2009-07-31T17:07:39+09:00 Subject: [ruby-core:24641] [Bug #1844] Immediates Should Not Respond to :dup Issue #1844 has been updated by Lin Jen-Shin. There's try_dup in extlib [0], which returns self in various class, i.e. NilClass, Symbol, TrueClass, FalseClass, Numeric, and Module. I am not sure, but I think this is used to prevent from side-effect. I am wondering, if what we want is not duplicate something, but ensure there's no side-effect, why not use another method? For example, dup_or_freeze [1] or so... My two cents. [0] http://github.com/datamapper/extlib/ [1] I know that immediates aree not frozen in the beginning. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1844 ---------------------------------------- http://redmine.ruby-lang.org