view test/interface7.d @ 133:44a95ac7368a trunk

[svn r137] Many fixes towards working, but not quite there yet... In particular, assertions has been fixed to include file/line info, and much more!
author lindquist
date Mon, 14 Jan 2008 05:11:54 +0100
parents 5880c12dba83
line wrap: on
line source
module interface7;

extern(C) int printf(char*,...);

interface I

class C : I

void main()
    I i = new C;
    ClassInfo ci = i.classinfo;
    char[] name =;
    printf(" = %.*s\n", name.length, name.ptr);
    ClassInfo cI = I.classinfo;
    name =;
    printf(" = %.*s\n", name.length, name.ptr);
    assert(ci is cI);