[Nitro] Facets symbol.to_s problem

nyarly at gmail.com nyarly at gmail.com
Thu Feb 1 14:08:48 EST 2007



On Feb 1, 1:58 am, "George Moschovitis" <george.moschovi... at gmail.com>
wrote:
> Tom,
>
> facets/core/symbol/to_s freezes the generated string, causing a lot of
> problems in Og, in code like:
>
> acc << symbol.to_s
> acc << "..." if ...
>
> can you please remove the .freeze ? There is a workaround of course
> "#{symbol}" but it looks uggly!

Why do you need a facet for this?  At least as of Ruby 1.8.5:

$ ruby -e "p :test.to_s"
"test"
$ ruby -e "p :test.to_s.frozen?"
false





More information about the Nitro-general mailing list