Issue #5235 has been updated by Yukihiro Matsumoto.

Status changed from Open to Rejected

#freeze prohibits modification to an object, not a variable.
----------------------------------------
Bug #5235: Ruby fails to freeze Strings and Numerics.
http://redmine.ruby-lang.org/issues/5235

Author: Kat Magic
Status: Rejected
Priority: Normal
Assignee: 
Category: core
Target version: 1.9.2
ruby -v: ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]


 x = 0
 x.freeze()
 x += 1
 x # => 1
 
 s = ""
 s.freeze()
 s += "a"
 s # => "a"


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