std.experimental.allocator and @nogc

rikki cattermole via Digitalmars-d digitalmars-d at puremagic.com
Sun May 8 22:27:24 PDT 2016


On 09/05/2016 5:16 PM, Hildigard Sandyman wrote:
> On Monday, 9 May 2016 at 05:00:31 UTC, rikki cattermole wrote:
>> On 09/05/2016 4:50 PM, Danni Coy via Digitalmars-d wrote:
>>> It seems to me, that std.experimental.allocator should work with @nogc
>>> annotated functions if none of the allocators being used are the
>>> gcallocator, though it's not at all clear to me how this would work.
>>>
>>> Are there plans for this?
>>
>> If only we had @assumenogc ala @safe's @trusted but for @nogc we could
>> definitely do it then.
>
> I think you've been misleaded by the initial Q that spuriously assumes
> that allocators are not @nogc but @nogc allocators seems to be a
> milestone that's in our back now.

All I know is that until IAllocator can be @nogc, we can't use 
theAllocator + processAllocator. Which kinda requires @assumenogc for 
the GC allocator.


More information about the Digitalmars-d mailing list