On Sunday, 4 December 2016 at 13:17:09 UTC, Era Scarecrow wrote:
On Tuesday, 29 November 2016 at 00:05:31 UTC, Steven
Schveighoffer wrote:
hashOf is kind of this horrible hacky thing that nobody should
be using. It literally takes whatever you pass it and hashes
the local bytes.
Ugg...
On Tuesday, 29 November 2016 at 00:05:31 UTC, Steven
Schveighoffer wrote:
hashOf is kind of this horrible hacky thing that nobody should
be using. It literally takes whatever you pass it and hashes
the local bytes.
Ugg... Anything with pointers, classes or arrays will have huge
problems
On 11/27/16 2:10 AM, panmengh wrote:
How to get hash value of an object?
Use hashOf? or typeid(T).getHash()?
hashOf is kind of this horrible hacky thing that nobody should be using.
It literally takes whatever you pass it and hashes the local bytes. It
doesn't care about opHash or if any
How to get hash value of an object?
Use hashOf? or typeid(T).getHash()?
I test with the following code:
System:
windows 10
dmd --version
DMD32 D Compiler v2.072.0 (official download version)
ldc2 --version
LDC - the LLVM D compiler (1.1.0git-62a2252) (the latest git
master version)
based