@nogc hash

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 9 05:31:04 PDT 2016


On Friday, 9 September 2016 at 11:35:58 UTC, Guillaume Piolat 
wrote:
> On Friday, 9 September 2016 at 11:16:19 UTC, Marco Leise wrote:
>> It does not /allocate/ with the GC, but the methods are
>> not /annotated/ @nogc, e.g. insert():
>> https://github.com/economicmodeling/containers/blob/master/src/containers/hashmap.d#L338
>> It's plain simple not possible out of the box* at the moment.
>>
>> * writing your own hash function that covers every type is NOT
>>   "out of the box" :p
>
> But they are template functions.
> Maybe this is a case of 
> https://p0nce.github.io/d-idioms/#Automatic-attribute-inference-for-function-templates then?

Strangely you seemed to know, 1 month ago, about the annotation 
problem !
Wasn't this you "ponce" that opened this Q 
https://github.com/economicmodeling/containers/issues/60 ?


More information about the Digitalmars-d mailing list