<div dir="ltr">Is there a reason that the following code<br><br>struct Foo<br>{<div>    this (string name)<br>    { do_something(name); }<br><br>    ~this()<br>    { undo_something(); }<br></div><div>}<br><br>Foo foo = void;<br><br>void open()<br>{</div><div>    foo = Foo("test"); // <- this line<br>}<br><br>tries to OpAssign foo to itself then calls foo's destructor?<br><br><br></div></div>