GSlice - Re: [OT] About GC: The Future of Rust : GC integration

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 9 03:50:18 PDT 2016


On Wednesday, 8 June 2016 at 12:38:25 UTC, Andrei Alexandrescu 
wrote:
> On 6/8/16 1:59 PM, Nick Treleaven wrote:
>> I wonder if Andrei's allocator API supports freeing with a 
>> size argument.
>
> Size is required with all deallocations. -- Andrei

Thanks. So I suppose it's up to each allocator whether this will 
work or not:

alloc.makeArray!T(5).ptr.Alias!(p => alloc.dispose(p));

I guess it would work for Mallocator.


More information about the Digitalmars-d mailing list