automem v0.0.7 - C++ style smart pointers using std.experimental.allocator

Atila Neves via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Apr 10 01:32:12 PDT 2017


On Sunday, 9 April 2017 at 19:04:22 UTC, mogu wrote:
> On Sunday, 9 April 2017 at 08:56:52 UTC, Atila Neves wrote:
>> Using std.experimental.allocator? Tired of writing 
>> `scope(exit) allocator.dispose(foo);` in a language with RAII? 
>> Me too:
>>
>> [...]
>
> Nice!
>
> Should UniqueArray be implemented as a overloaded version of 
> Unique? Unique!(Object[]) instead of UniqueArray!(Object).

I started like that, but after many a `static if` realised they 
had very little in common.

Atila


More information about the Digitalmars-d-announce mailing list