From: Stephen Cox Date: 2007-07-19T11:09:30+09:00 Subject: Re: Symbols Hal Fulton wrote: > Stephen Cox wrote: >> Ahhh.. I think I got it. >> >> Thanks... >> > > Of course, note that you can go back and forth between > symbols and strings, but not between variables and strings. > > email = 1 # It's just a 1... doesn't know its own name. > > :email.to_s # "email" > "email".to_sym # :email > > > Hal yeah I figured out symbols were the actual value. But one question, if a symbol is no longer used what happens to it? Is it released when the procedure it was create in completes? -- Posted via http://www.ruby-forum.com/.