Often repeated array allocations

Namespace rswhite4 at googlemail.com
Sat Jul 20 23:45:56 PDT 2013


But D isn't like Ada. It's more like C++ and there Heap 
allocations is often used too.
It would be really cool if we had allocators already.
Something like:
----
with (AllocatorX) { /// will use malloc and free instead of 
calling the GC
     float[] arr;
     arr ~= 42;
}
----

And I still don't know what a 'TLS scratch pad buffer' is.


More information about the Digitalmars-d-learn mailing list