From: Sam Kong Date: 2005-07-26T09:06:02+09:00 Subject: Re: Trying to understand symbols Thanks David! David A. Black wrote: > sym is a symbol in a generic or general sense, whereas :x is an > instance of class Symbol. When people talk about things like using > symbols as hash keys, they mean instances of Symbol -- :x and things > like that. It's common usage to call things like sym (above) symbols > too, so there's some overloading of the term. Your explanation made it clear! One more think to clear up. f.send(:foo) #<- is :foo a symbol like an instance of Symbol or just a generic symbol? If :foo is not an instance of Symbol, then ':' is used for 2 kinds of things in Ruby, right? Thanks. Sam