Lars T. Kyllingstad wrote:
> On Tue, 05 Oct 2010 23:25:36 +0200, vano wrote:
>
>> The code below:
>> module used;
>>
>> import std.stdio;
>>
>> class ClassA {
>> this() { writeln("A ctor"); }
>> ~this() { writeln("A dtor"); }
>> }
>>
>> static this()
On Tue, 05 Oct 2010 23:25:36 +0200, vano wrote:
> The code below:
> module used;
>
> import std.stdio;
>
> class ClassA {
> this() { writeln("A ctor"); }
> ~this() { writeln("A dtor"); }
> }
>
> static this() { writeln("used.sctor"); } static ~this()
The code below:
module used;
import std.stdio;
class ClassA {
this() { writeln("A ctor"); }
~this() { writeln("A dtor"); }
}
static this() { writeln("used.sctor"); }
static ~this() { writeln("used.sdtor"); }
void main() {
auto a = new Class