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 09:40:42 -0700
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BFB1BA0B dot 5ADE%Roph at kc dot rr dot com>
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.

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>