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: Adam Ernst <adam1234 at athenet dot net>
Date: Tue, 29 Nov 2005 11:07:15 -0600
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]>
On Nov 29, 2005, at 10:40 AM, Joseph J. Strout wrote:

OK, it's true; Variant.Hash is currently not unique, even for distinct objects (or integers), and it's been this way since at least 2003. It's been fixed for the next release of REALbasic.

Meanwhile, what to do? A plugin could trivially give you the address of an object. Otherwise, you could use a dictionary to assign each object a unique value, as Will suggested.

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

Adam

_______________________________________________
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>