Thanks for answer, but for clarification: > Do you expect b.contains(h) to be 
false or true?

I except result must be true, because if object referenced or not, hashset must 
to look up hash function result.

Indeed if i used another type rather than object they couldn't be share some 
memory location.

i dig in source code a bit. It looks like search by "for x in list" like 
statement. so i added equal overload function. But if compiler doesn't look the 
hash function why it gives me error? Or how can i compare two object? Some 
languages like java (as i can remember) it looks hashes for compare. But in nim 
it doesn't use for compare object

echo f == h # --> result false

Interesting. But i don't know it's a bug or feature.

Reply via email to