view test/interface1.d @ 115:5ba6d286c941 trunk

[svn r119] Added the monitor data field that comes after the vtable pointer to all classes. Represented as a void* initialized to zero.
author lindquist
date Sun, 25 Nov 2007 03:58:55 +0100
parents 27b9f749d9fe
children 44a95ac7368a
line wrap: on
line source

module interface1;

interface Inter
{
    void func();
}

class Class : Inter
{
    override void func()
    {
        printf("hello world\n");
    }
}

void main()
{
    scope c = new Class;
    c.func();
    Inter i = c;
    i.func();
}