On Saturday, 21 February 2015 at 18:30:18 UTC, Olivier Pisano wrote:
On Saturday, 21 February 2015 at 10:06:26 UTC, FrankLike wrote:
RAII(Resource Acquisition Is Initialization) is a good thing,will D plan to do it?

It's already here :


import std.stdio;

struct Test
{
    ~this() { writeln("RAII"); }
}

void main()
{
     Test t; // prints "RAII" when goes out of scope
}



Reply via email to