std.experimental.allocator and @nogc

Danni Coy via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 00:16:21 PDT 2016


On Mon, May 9, 2016 at 3:10 PM, Hildigard Sandyman via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Monday, 9 May 2016 at 04:50:59 UTC, Danni Coy wrote:

> It already mostly works in @nogc block:
> - Mallocator and AlignedMallocator are @nogc.

I was trying to use BitmappedBlock, AllocatorList and MmapAllocator
with @nogc without much luck.
BitmappedBlock and AllocatorList, both take allocators as arguments so
they may or may not use GC depending on which allocators they are
using. I was wondering how D would handle this.


More information about the Digitalmars-d mailing list