realbasic-nug
[Top] [All Lists]

Re: Variant.Hash for objects is not unique in RB 2005 v4

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Variant.Hash for objects is not unique in RB 2005 v4
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 29 Nov 2005 10:17:19 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BFB1BA0B dot 5ADE%Roph at kc dot rr dot com> <a06200704bfb2340c001e at [10 dot 0 dot 1 dot 4]> <B3AA3359-BA13-4EAC-914E-760CF841F303 at athenet dot net>
At 11:07 AM -0600 11/29/05, Adam Ernst wrote:

Does this mean using objects as keys in Dictionaries will not necessarily work as intended?

No, it doesn't mean that. Dictionaries work fine; no dictionary has 2^32 bins to sort objects into, so they have to be prepared to handle collisions anyway (and they do).

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>