realbasic-nug
[Top] [All Lists]

Re: Doh! Variant.Hash is case insenstive Re: Variant.Hash for objects is

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Doh! Variant.Hash is case insenstive Re: Variant.Hash for objects is not unique in RB 2005 v4
From: Phil M <phil at mobleybros dot com>
Date: Wed, 30 Nov 2005 12:57:56 -0800
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <a06200701bfb372282d7f at 10 dot 0 dot 1 dot 4> <BFB32752 dot 5BD3%Roph at kc dot rr dot com> <89fe53800511301240l331fa4c4sf1813b0bb4ce5a4f at mail dot gmail dot com>
On Nov 30, 2005, at 12:40 PM, Thomas Tempelmann wrote:

So, if you try to store two keys "a" and "A" in a dictionary, you're not getting it done without extra work, and the solution to this really awkward. I.e, some here suggest that you could encode your keys as Base64 so that you can store them like case-sensitive strings. But THAT is a big hit in performance that's way worse than what you have to face if you're dealing with your Hash values, I'd say.

It is less likely that you can get collisons with Base64, but the Base64 encoding still depends on case-sensitivity. If you want to use the standard REALbasic Dictionary, then you are going to need to either Base32 the string or Hex it.

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