From: Bill Kelly Date: 2001-12-24T06:36:41+09:00 Subject: [ruby-talk:29378] Re: a better way? From: > 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] Interesting. . . Could one then create an autovivifying-style hash-of-hashes(-of-hashes...) with something like: $avHash = proc {|h, c| h[c] = Hash.new(&$avHash) } h = Hash.new(&$avHash) . . . kewl!! =-D (This ought to work, right? ?) Regards, Bill