From: Fernando Cacciola Date: 2007-11-06T22:45:38+09:00 Subject: Re: string to symbol mortee wrote: > Fernando Cacciola wrote: >> mortee wrote: >>> my_str = "some string" >>> my_sym = :"some symbol" >>> >> Right. >> If I name the "variable" as "MY_STR" is then officially a "constant" >> (instead of a variable) right? >> (and that would be preferred in this case) > > If you wish. Note that you can't create constants from within methods. > Oh... why is that? -- Fernando Cacciola SciSoft http://fcacciola.50webs.com