I need a @nogc version of hashOf(). What are the options?
Ilya Yaroshenko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 7 09:57:32 PDT 2016
On Sunday, 7 August 2016 at 16:42:47 UTC, Gary Willoughby wrote:
> I need a @nogc version of hashOf(). Here's one i'm currently
> using but it's not marked as @nogc.
>
> https://github.com/dlang/druntime/blob/master/src/object.d#L3170
>
> What are the options now?
>
> Is there anything D offers that I could use? I need a function
> that takes a variable of any type and returns a numeric hash.
Current DMD master has MurmurHash3 digest.
More information about the Digitalmars-d-learn
mailing list