Menu

#20 A negative Key give a negative index !

open
HashMap (7)
9
2003-10-13
2003-10-13
No

with THashMap we can provide a negative Key.
This key will be hash to a negative index in Bucket array.
=> index out of bounds.

the Key must be a Cardinal instead of Integer for hash
function.

Discussion


Log in to post a comment.