Actions
Bug #1571
closedHash Methods Behaving Inconsistently with Frozen Hashes
Bug #1571:
Hash Methods Behaving Inconsistently with Frozen Hashes
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
Description
=begin
As per matz's request in [ruby-core:23714], here are the Hash methods I've found which do not raise RuntimeErrors when the Hash is frozen and the method wouldn't have changed it:
Hash#merge!, e.g. h.merge!({})
Hash#update, e.g. h.update({})
Hash#reject!, e.g. {}.reject! {true}
=end
Updated by matz (Yukihiro Matsumoto) over 16 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
Applied in changeset r23650.
=end
Actions