On 30/10/15 7:56 AM, ref2401 wrote:
As I understand the `std.experimental.allocator` package will be
included in the upcoming DMD 2.069 release. I like the idea of
composable allocators. Though I've got a question which I can not answer
myself.

Let's assume a team which is developing an application that can benefit
from usage of different allocation strategies. When a programmer
implements a function/struct/class he may use whatever allocator he
thinks fits his needs best. At some point the source code is going to be
a mess because there will be so many places where different allocation
strategies are used.
The question. Could you suggest robust practices, how to avoid designing
such messy code?

Any information is appreciated.
Thank you.

Take a look at the functions theAllocator and processAllocator.

Reply via email to