Re: Destruction Sequence: module and classes defined within

2010-10-08 Thread Lutger
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()

Re: Destruction Sequence: module and classes defined within

2010-10-06 Thread Lars T. Kyllingstad
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()

Destruction Sequence: module and classes defined within

2010-10-05 Thread vano
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