chiark / gitweb /
src/foo.sod: Split `Second' off into its own separate chain.
[sod] / src / foo.sod
1 /* foo */
2
3 code c : includes {
4 #include "foo.h"
5 }
6
7 code h : includes {
8 #include "sod.h"
9 }
10
11 //[link = SodObject]
12 class 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 [nick = snd]
21 class Second : Test {
22   void test.dec() { Test *t = SECOND__CONV_TEST(me); t->test.x -= 3; }
23 }