Thread View: borland.public.delphi.language.objectpascal
1 messages
1 total messages
Started by Malte Persike
Mon, 19 Apr 2004 10:29
How to use an integer as a hash key?
Author: Malte Persike
Date: Mon, 19 Apr 2004 10:29
Date: Mon, 19 Apr 2004 10:29
24 lines
1701 bytes
1701 bytes
Hi! I need a hashed list in one of my visual components. As I am not very much into the logic behing hashing and hashing functions, I decided to modify the code given in Delphi's THashedStringList. Only problem is that this list is designed as the usual string-string hash whereas I need an int-object hash (int as key, object as value). To my understanding all a hash function does is to take a string (usually) and return a most probably unique integer number. Would it be considered ok if I just altered the Delphi code in the way that the HashOf() function returns just the integer value it received as a hash key? Kind regards, Malte -- The above e-mail address is not valid. To contact me, please use my real e-mail address: malte AT t DASH online DOT de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads