view mini/test1/main.d @ 363:3b0545d4d479

Fixed enums in designated interfaces
author Max Samukha <maxter@maxter.com>
date Thu, 10 Jun 2010 00:57:32 +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)
{
}