RAII pointers
Stanislav Blinov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 3 13:25:22 PDT 2017
On Saturday, 3 June 2017 at 20:13:30 UTC, Moritz Maxeiner wrote:
> Calling std.algorithm.move is explicit programmer intent, I
> consider that about as accidental as calling memcpy with a
> source full of zeroes.
> In any case, having that check in the destructor is fairly
> cheap, so better safe than sorry (and include it).
Yes, it's explicit. Destructor call is still implicit though, and
it better not be performing null dereference or something equally
nasty :)
More information about the Digitalmars-d-learn
mailing list