From: Bertram Scharpf Date: 2009-12-22T22:42:34+09:00 Subject: Re: Symbols vs. constants? Hi, Am Dienstag, 22. Dez 2009, 21:59:30 +0900 schrieb Rick DeNatale: > On Tue, Dec 22, 2009 at 6:02 AM, Bertram Scharpf > wrote: > > > > Constants are variables: > > > >  X = "hello" > >  X.freeze > >  X.replace "hi again"  # forbidden (TypeError) > > > > But you can also freeze other variables: > > > >  x = "foo" > >  x.freeze > >  x.replace "bar"       # forbidden (TypeError) > > No you can't freeze variables, you can freeze the objects they reference. Yes, of course. I meant 'objects in regular, non-constant variables'. Sorry for the sloppy phrase. I just detected another thing: It is abolutely pointless to freeze a symbol _object_. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany * Discover String#notempty? at .