From: Robert Dober Date: 2007-05-15T22:54:05+09:00 Subject: Re: Why was the "Symbol is a String"-idea dropped? On 5/15/07, Brian Candler wrote: > But then what you want are not symbols, but true immutable strings. By that > I mean: some object where I can write 10MB of binary dump. If I want to add > one character to the end of it, then I create another object containing > 10MB+1byte of binary dump, and the old 10MB object is garbage-collected. But of course we have immutable strings already :))) class IString < String def initialize str super(str) freeze end end HTIOI (Hope this is of interest ;) > Cheers Robert You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw