From: Farrel Lifson Date: 2008-08-18T19:29:34+09:00 Subject: Re: The symbol dilemma... 2008/8/18 Mayuresh Kathe : > The statement, "because two distinct Symbol objects will never have > the same content" seems unclear to me. > > Can't I do the following? > books = { > :excellent => "Iacocca", > :good => "Freakonomics", > :bad => "The World is Flat", > :ugly => "Guns, Germs and Steel", > :sick => "Guns, Germs and Steel" > } > > In that case, won't two distinct Symbol objects, i.e. :ugly, and :sick > have the same content? > > I'm sure there's something wrong in the way I'm understanding this, > could someone please elaborate? The symbols themselvs (:ugly and :sick) will always be distinct, not the strings they act as keys for in the hash. Farrel -- Aimred - Ruby Development and Consulting http://www.aimred.com