behavior of get-hashnumber with bignums

Joseph Donaldson <[email protected]>
Newsgroups gmane.lisp.scheme.bigloo
Message-ID <[email protected]>
Hello,

Even understanding why, given the underlying implementation details, I
still find it surprising that #z123 (the bignum representation of 123)
hashes to a different value than 123. Would we be asking for problems
if get-hashnumber simply returned its value as long if less than the
max value of a long. This would bring its behavior into line with the
rest of the supported integer types. What do people think?

Best Regards,
Joseph Donaldson
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.