xxxxxxxxxx
import std.stdio;
struct Predictable
{
string id;
this(string _id)
{
writeln("Constructor ", _id);
id = _id;
}
~this()
{
writeln("Destructor " ~ id);
}
}
void main()
{
Predictable s0 = Predictable(0);
{
Predictable s1 = Predictable(1);
}
Predictable s2 = Predictable(2);
}