On Dec 29, 2006, at 11:06 PM, Kiam wrote:
----- Original Message -----
From: "Charles Yeomans" <[EMAIL PROTECTED]>
To: "REALbasic NUG" <[email protected]>
Sent: Saturday, December 30, 2006 4:37 AM
Subject: Re: How to compute the address of an object?
Use Variant.Hash. I think it's documented to return distinct
values for distinct objects.
It does, but I think it's very slow (for what I understood).
Rather than, I would ask if the unique ID must still be unique
after it has been saved in a database / file, and then loaded back.
Actually, I cannot think to a different way to get an unique ID
that is not too slow. If you want an ID that is persistent after
many runs of the program, then there is a solution.
--
As I understand it, it's essentially the pointer address, possibly
obfuscated. So it's no slower than an integer operation or two.
Charles Yeomans
_______________________________________________
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>