Bug #419

[PATCH] Hash#default_proc=

Added by Giuseppe Bilotta almost 7 years ago. Updated about 4 years ago.

[ruby-core:18244]
Status:Closed
Priority:Normal
Assignee:Yukihiro Matsumoto
ruby -v: Backport:

Description

=begin
The attached patch implements Hash#default_proc=, a method to change the default proc for hashes after creation. I decided to implement this feature as a follow-up to a discussion on the IRC channel. The patch was tested against current svn trunk. This being my first contribution to this excellent project, I hope I didn't get too many things wrong :)
=end

hash-set-default-proc-1.9.patch Magnifier - Patch to implement Hash#default_proc= against svn trunk@18501 (1.45 KB) Giuseppe Bilotta, 08/12/2008 08:13 AM

Associated revisions

Revision 18577
Added by Yukihiro Matsumoto almost 7 years ago

  • hash.c (rb_hash_set_default_proc): add new method. a patch from Giuseppe Bilotta. #419

Revision 18577
Added by Yukihiro Matsumoto almost 7 years ago

  • hash.c (rb_hash_set_default_proc): add new method. a patch from Giuseppe Bilotta. #419

History

#1 Updated by Giuseppe Bilotta almost 7 years ago

=begin
Oops, I assigned it to the wrong tracker, should have been a Feature, sorry 8-(
=end

#2 Updated by Koichi Sasada almost 7 years ago

  • Assignee set to Yukihiro Matsumoto

=begin

=end

#3 Updated by Yukihiro Matsumoto almost 7 years ago

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

=begin
Applied in changeset r18577.
=end

Also available in: Atom PDF