An actual running implementation, which makes code that compiles.
[sod] / src / foo.sod
... / ...
CommitLineData
1/* foo */
2
3code c : includes {
4#include "foo.h"
5}
6
7code h : includes {
8#include "sod.h"
9}
10
11//[link = SodObject]
12class Test : SodObject {
13 int x = 0;
14
15 int cur() { return me->test.x; }
16 void inc() { me->test.x++; }
17 void dec() { me->test.x--; }
18}
19
20[link = Test, nick = snd]
21class Second : Test {
22 void test.dec() { me->test.x -= 3; }
23}