From: Nate Smith Date: 2004-08-20T04:50:13+09:00 Subject: Re: Hash values too big to fit into buckets On Thu, 2004-08-19 at 15:36, Nate Smith wrote: > Hello, > > Is there any way to get around values being too big (being assigned as > bignums) to fit into a hash? (Not a Hash class, but a hash fixnum > assigned to each bucket). For example, in my LR parser, each > Production's hash is composed of the hashes of its elements: > > def hash # Production#hash > @nonTerminal.hash + @action.hash + @expansion.hash > end Well dividing the resulting hash value by 2 fixes the problem.. but such a hack probably has bad side effects down the road.... >:-)