GSlice - Re: [OT] About GC: The Future of Rust : GC integration
Nick Treleaven via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 10 13:38:30 PDT 2016
On Wednesday, 8 June 2016 at 17:23:22 UTC, deadalnix wrote:
>> I wonder if Andrei's allocator API supports freeing with a
>> size argument.
...
> This extra bit of infos seems to be less useful in practice
> than you'd naively expect. Someone may come up with something
> interesting to do with it someday, but I haven't seen anything
> that groundbreaking so far.
OK. What if the allocation size was passed as a compile time
parameter on deallocation? Then CTFE could calculate e.g. the
next power of 2.
More information about the Digitalmars-d
mailing list