Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same hash values for different 1 length strings #33

Open
GoogleCodeExporter opened this issue Jun 26, 2015 · 1 comment
Open

Same hash values for different 1 length strings #33

GoogleCodeExporter opened this issue Jun 26, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

When #hash is sent to a 1 character length string it gives always 0.

For example:

'd' hash!
0

'r' hash!
0

What version of the product are you using? On what operating system?

0.1.7 - Linux

Please provide any additional information below.

#= is defined as comparing hash values of two objects. But according to the
above result

'd' = 'r'!

should return "true" which would be a wrong output. But Syx interpreter
truly returns "false". Something seems wrong.

Original issue reported on code.google.com by canol.go...@gmail.com on 15 Jul 2008 at 4:16

@GoogleCodeExporter
Copy link
Author

It's a problem of the hashing method.

For the #=: if two objects represent the same component, they MUST have the 
same 
hash. If they have the same hash they CAN represent different component. The 
hash 
unfortunately is not univoque.

Original comment by lethalma...@gmail.com on 15 Jul 2008 at 4:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant