Hello ruby-talk,
i think i found bug in "ruby 1.7.2 (2002-07-02) [i386-mswin32]"
hash = Hash.new{Hash.new}
hash[0][0] = 1
p hash[0] #=> {}
i think it must print "{0=>1}". and it actually printed when i use "hash = Hash.new(Hash.new)"
as first line or manual initialization:
hash = {}
hash[0] = {}
hash[0][0] = 1
p hash[0] #=> {0=>1}
what say ruby 1.7.3?
--
Best regards,
Bulat mailto:bulatz / integ.ru