[ create a new paste ] login | about

Link: http://codepad.org/TCtG68Fw    [ raw code | fork ]

D, pasted on Jun 14:
module foo;

static this()
{
    import std.stdio;
    writeln("ctor!");
}

shared static this()
{
    import std.stdio;
    writeln("shared ctor!");
}

static ~this()
{
    import std.stdio;
    writeln("dtor!");
}

shared static ~this()
{
    import std.stdio;
    writeln("shared dtor!");
}

void test()
{
    import std.stdio;    
    writeln("foo.test");
}


Create a new paste based on this one


Comments: