Project

General

Profile

Actions

Feature #420

closed

[PATCH] Hash#default_proc=

Added by oblomov (Giuseppe Bilotta) about 13 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:18246]

Description

=begin
The attached patch implements Hash#default_proc= (see also Bug #419) for Ruby 1.8.7

I had to make rb_obj_is_proc nonstatic in eval.c and put it in an extern in hash.c --it could be done more cleanly by defining an appropriate header file, I hope that my going the short route is not too much of a problem.
=end


Files

hash-set-default-proc-1.8.7.patch (1.57 KB) hash-set-default-proc-1.8.7.patch Patch to implement Hash#default_proc= against svn branch ruby_1_8_7@18504 oblomov (Giuseppe Bilotta), 08/12/2008 08:41 AM
Actions

Also available in: Atom PDF