From: noreply@... Date: 2007-03-12T19:50:18+09:00 Subject: [ ruby-Bugs-9201 ] An array in a Hahs Bugs item #9201, was opened at 2007-03-12 10:50 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9201&group_id=426 Category: Core Group: 1.8.4 Status: Open Resolution: None Priority: 3 Submitted By: Marius H��chler (derano) Assigned to: Nobody (None) Summary: An array in a Hahs Initial Comment: I tried doing this Hash.new(Array.new()) which should create a Hash in whitch each key value has an Array. The Problem i found is, that it's not each an Array, it's all the same Array. So this happened hash[:key1] << 25 hash[:key2] << 12 hash[:key1] == hash[:key2] both will have the value of [25,12] i don't know if it's a feature, but for me it looks like a bug. ruby 1.8.4 (2005-12-24) ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9201&group_id=426