D is dead
Shachar Shemesh
shachar at weka.io
Fri Aug 24 13:34:57 UTC 2018
On 24/08/18 13:43, nkm1 wrote:
>
> I think Walter was talking more about "scope (failure) destroy(this)" at
> the top of all your structs? I don't know if it has some gotchas, though
> (as I don't use RAII in D...).
>
No, unlike what I suggest, that doesn't work without carefully reviewing
every single place you put it to see whether the constructor actually
supports destructing a partially constructed object.
Shachar
More information about the Digitalmars-d
mailing list