Project

General

Profile

Actions

Bug #1571

closed

Hash Methods Behaving Inconsistently with Frozen Hashes

Bug #1571: Hash Methods Behaving Inconsistently with Frozen Hashes

Added by runpaint (Run Paint Run Run) over 16 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23614) [i686-linux]
Backport:
[ruby-core:23715]

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 Actions #1

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23650.
=end

Actions

Also available in: PDF Atom