From: Florian Gross Date: 2004-08-20T04:45:53+09:00 Subject: Re: Hash values too big to fit into buckets Nate Smith wrote: > Hello, Moin! > 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 Maybe like this? def hash [@nonTerminal, @action, @expansion].hash end Regards, Florian Gross