Can someone please explain why the following assertion fails?
    Gary Willoughby via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Mon Oct 31 12:53:49 PDT 2016
    
    
  
On Monday, 31 October 2016 at 19:24:13 UTC, Ali Çehreli wrote:
> On 10/31/2016 12:08 PM, Gary Willoughby wrote:
>> [...]
>
> Because it considers the .ptr property of arrays as well:
>
>
> https://github.com/dlang/druntime/blob/master/src/core/internal/hash.d#L61
>
> [...]
Ah right.
Is there an alternative built-in, generic, nogc hash function 
that would return the same values for Strings?
    
    
More information about the Digitalmars-d-learn
mailing list