<div dir="ltr">@delete() {}<div>delete() {}</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 26, 2017 at 3:08 PM, jmh530 via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wednesday, 26 July 2017 at 12:55:17 UTC, Mike Parker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
~this() {}                    // Finalizer<br>
~this() @nogc {}              // Finalizer<br>
~this @deterministic {}       // Destructor<br>
~this @nogc @deterministic {} // Destructor<br>
}<br>
</blockquote>
<br>
Yeah, this brings with it more flexibility. I'd prefer to avoid adding a new attribute for it, but this looks more interesting.<br>
<br>
<br>
</blockquote>
<br></span>
Some other options:<br>
~~this() {}<br>
!this() {}<br>
!~this() {}<br>
this!(true) () {} //not really a big fan of this version<br>
</blockquote></div><br></div>