GIT.Harvie.CZ
/
svn
/
Cll1h
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some work
[svn/Cll1h/.git]
/
demos
/
objects
/
objects-wiki.c
diff --git
a/demos/objects/objects-wiki.c
b/demos/objects/objects-wiki.c
index 2fbab8f5ffe1a7fd6f474d1a77c95b64a875a3a8..08403cb91af186a2a8830537b0a509af8217d5c2 100644
(file)
--- a/
demos/objects/objects-wiki.c
+++ b/
demos/objects/objects-wiki.c
@@
-6,9
+6,7
@@
Of course there are easier ways to do the same thing... :-)
(G)2008 xChas */
Of course there are easier ways to do the same thing... :-)
(G)2008 xChas */
-def_type(Animal);
-
-def_mem(Actions)
+def_interface(Animal,Actions)
{
str method(talk) (Animal self);
};
{
str method(talk) (Animal self);
};
@@
-16,7
+14,7
@@
def_mem(Actions)
def_obj(Animal)
{
interface(Actions);
def_obj(Animal)
{
interface(Actions);
-
char *
name;
+
str
name;
};
construct(Animal,Actions) (Animal self, str name)
};
construct(Animal,Actions) (Animal self, str name)
@@
-70,6
+68,7
@@
program
for_range(i, 0, 2)
{
for_range(i, 0, 2)
{
- print(animal[i]->name, ":", _(talk,animal[i]));
+ print(animal[i]->name, ":", _(talk,
animal[i]));
}
}
+
}
}
This page took
0.136178 seconds
and
4
git commands to generate.