Isn't it about time for Ruby to be written entirely in Ruby? What's up
with that?

On Sun, 23 Dec 2001 19:39:45 GMT, nobu.nokada / softhome.net wrote:

>ChageLog:
>revision 1.58
>date: 2001/12/10 07:18:12;  author: matz;  state: Exp;  lines: +33 -12
>* hash.c (rb_hash_initialize): now accepts a block to calculate
>  the default value. [new]
>
>* hash.c (rb_hash_aref): call "default" method to get the value
>  corrensponding to the non existing key.
>
>* hash.c (rb_hash_default): get the default value based on the
>  block given to 'new'.  Now it takes an optinal "key" argument.
>  "default" became the method to get the value for non existing
>  key.  Users may override "default" method to change the hash
>  behavior.


Ronald E Jeffries
http://www.XProgramming.com
http://www.objectmentor.com