X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=demos%2Fobjects%2Fobjects-community.c;h=0854766c0ae28313594a92ebb9515a5795e0d352;hb=ea514b9e6351878fef9638813f50ce7013e8a832;hp=5b005636bdd2b04ffe6c0b8ca6fd8f28091fed39;hpb=02ca421af0e1463d1c1fb107daca667084f695cd;p=svn%2FCll1h%2F.git diff --git a/demos/objects/objects-community.c b/demos/objects/objects-community.c index 5b00563..0854766 100644 --- a/demos/objects/objects-community.c +++ b/demos/objects/objects-community.c @@ -2,9 +2,7 @@ /* This is example of advanced C<<1 object oriented features... */ -def_type(Shape); - -def_mem(Interface) +def_interface(Shape, Interface) { void method(draw) (Shape self); void method(move) (Shape self, int x, int y); @@ -264,7 +262,7 @@ Interface circInterface(void) return this; } -/* usage of objects inside C<<1 program */ +/* usage of object community inside C<<1 program */ program {