From: Wes Nakamura Date: 2000-05-02T02:26:56-07:00 Subject: [ruby-talk:02613] Structs and dictionary keys Hi, What's the purpose of the name when you create a new Struct? From the docs: dog = Struct.new("Dog", :name, :age) Can you reference something via the name "Dog"? Also, are frozen arrays suitable for dictionary keys? Will the second [1,2] always dereference properly? { [1,2].freeze => "test" }[[1,2]] I know that if you don't freeze the key and then change it, apparently you can't access the value via the key at all anymore. thanks, Wes.