get address of object if opCast is overridden

Lionello Lunesu lionello at lunesu.remove.com
Wed Dec 25 19:56:04 PST 2013


On 12/2/12, 21:25, js.mdnq wrote:
> I'm not just comparing them but using them as a unique ID for the
> objects in an algorithm to prevent computing over the same object more
> than once.

o.toHash() ??

(Which incidentally just casts the reference to a hash_t, exactly what 
you want to do.)


More information about the Digitalmars-d-learn mailing list