Mercurial > projects > qtd
view mini/test1/main.d @ 367:f69341b40588
Removed dependencies on qtd.Traits
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Thu, 24 Jun 2010 13:47:30 +0300 |
parents | bcbfffef4f9e |
children | 185df9220ea7 |
line wrap: on
line source
import qt.core.QMetaType; import std.stdio; import std.conv; import qtd.QtdObject; class A { string name; this(A copy) { writeln("Creating new from ", copy.name); name = "Copy of " ~ copy.name; } this(string name) { this.name = name; } void dispose() { writeln("Disposing ", name); } } void main(string[] args) { }