Ruby Forum Ruby-core > [Ruby 1.8.7 - Feature #420] (Open) [PATCH] Hash#default_proc=

Posted by Giuseppe Bilotta (Guest)
on 12.08.2008 01:41
(Received via mailing list)
Issue #420 has been reported by Giuseppe Bilotta.

----------------------------------------
Feature #420: [PATCH] Hash#default_proc=
http://redmine.ruby-lang.org/issues/show/420

Author: Giuseppe Bilotta
Status: Open
Priority: Normal
Assigned to:
Category:
Target version:


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.