realbasic-nug
[Top] [All Lists]

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

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Variant.Hash for objects is not unique in RB 2005 v4
From: Roph <Roph at kc dot rr dot com>
Date: Tue, 29 Nov 2005 12:30:18 -0600
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Thread-index: AcX1EvKzMQQnlGEGEdq/mgANk0o3Jg==
Thread-topic: Variant.Hash for objects is not unique in RB 2005 v4


On 11/29/05 10:40 AM, "Joseph J. Strout" <joe at realsoftware dot com> 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.

Or simply check for hash collisions.

Thanks Joe.

> Best,
> - Joe


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