An actual running implementation, which makes code that compiles.
[sod] / src / foo.sod
index f5c10dc..9db34ba 100644 (file)
@@ -1,7 +1,23 @@
 /* foo */
 
-code header : include {
+code c : includes {
 #include "foo.h"
 }
-lisp (format t "hello, world!~%");
-demo "found foo ok";
+
+code h : includes {
+#include "sod.h"
+}
+
+//[link = SodObject]
+class Test : SodObject {
+  int x = 0;
+
+  int cur() { return me->test.x; }
+  void inc() { me->test.x++; }
+  void dec() { me->test.x--; }
+}
+
+[link = Test, nick = snd]
+class Second : Test {
+  void test.dec() { me->test.x -= 3; }
+}