Small @nogc experience report

Per Nordlöw per.nordlow at gmail.com
Wed Sep 19 12:39:03 UTC 2018


On Friday, 7 September 2018 at 17:01:09 UTC, Meta wrote:
> So it seems that it's never worked. Looking at the 
> implementation, it uses a std.container.BinaryHeap, so it'd 
> require a small rewrite to work with @nogc.

AFAICT, extending std.container with support for specifying you 
own @nogc (malloc-based) allocators is one way of making 
`topNCopy` not use the GC.


More information about the Digitalmars-d mailing list