From: James Edward Gray II Date: 2005-11-06T22:23:32+09:00 Subject: Re: Generation of Unique Symbols On Nov 6, 2005, at 1:03 AM, Eric Hofreiter wrote: > So far this is the best way I have come up with to generate unique > symbols: > > symbol = :AAAAAAAA > > def getNext > symbol = eval(":" + symbol.id2name.next) > end > > But this is obviously not very efficient. Is there a better way to > do this? If not I may just go back to good old integers. Others have answered this, but let me add a warning. I'm not sure how many of these symbols you are generating, but be aware that symbols are not garbage collected. Watch your memory consumption. James Edward Gray II