Mercurial > projects > qtd
view mini/test1/main.d @ 366:da4235301224
Fixed VoidFunc. Updated to dmd.2.047.
author | Max Samukha <maxter@spambox.com> |
---|---|
date | Wed, 23 Jun 2010 21:34:43 +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) { }