On Thursday, 18 February 2016 at 13:55:02 UTC, Witek wrote:
I will try using std.experimental.allocator, but this doesn't play well with "~", and I would need to manually do expandArray, and array operations, which is a pain. It would be nice to encode allocator used in the type, potentially by wrapping array into custom struct/class.
You can try std.container https://dlang.org/phobos/std_container.html - it uses C heap for memory management and has overloads for append operators.
