From: Rich Morin Date: 2005-12-29T11:50:51+09:00 Subject: Re: What is the difference between :foo and "foo" ? At 11:31 AM +0900 12/29/05, Devin Mullins wrote: > - That means, with strings, if you say 'foo' 5 times in the code, you're > creating 5 string objects, whereas with symbols, you're only creating one. I can understand this as a possible implementation, but I really wonder about the follow-on statement that I've seen, saying that this can cause memory leaks. If I define a string and then discard it, shouldn't it be GCed? -r -- email: rdm@cfcl.com; phone: +1 650-873-7841 http://www.cfcl.com - Canta Forda Computer Laboratory http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.