On Wed, 08 Dec 2004 23:13:12 +0900, trans.  (T. Onoma) wrote:

> How do you set the default value after the fact?
> 
>   h = {}
>   h.default=x  #?

Yes.

> Default makes more sense as an option:
> 
>   h2 = Hash.new(h1, :default=>0)

I'm quite happy with being able to do h.default=. It's certainly clearer
than the single argument to Hash.new.