Mayuresh Kathe <kathe.mayuresh / gmail.com> writes:

> 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?

No, :ugly refers to ("has the content of") the symbol :ugly, and :sick
refers to the symbol :sick. The fact that you're using different
symbols as keys to equal values in some hash is irreleveant. What's
meant by the original statement is:

   There are no two symbols ! :x.equal?(:y) where :x.eql?(:y)

-- 
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/