unit-threaded v0.6.13 - tags, autotags and support for integration tests
    Andrei Alexandrescu via Digitalmars-d-announce 
    digitalmars-d-announce at puremagic.com
       
    Tue May 17 11:52:13 PDT 2016
    
    
  
On 05/17/2016 10:22 AM, Meta wrote:
> On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote:
>> You surely mean "used to be destroy", right?
>
> Good question... If I write this:
>
> struct Test
> {
>      ~this() { writeln("destroying Test"); }
> }
>
> with (Test())
> {
>      //Do stuff
> }
>
> Will Test's destructor be run once we exit the `with` scope?
Should.
    
    
More information about the Digitalmars-d-announce
mailing list