diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-11 13:53:16 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-11 13:53:16 -0400 |
commit | 4cdee65cadb4f6e714fe30945ed9080e191618f6 (patch) | |
tree | ef147eaa32d31524f3812a5a12966c2e0a6841d2 | |
parent | af78ae105bbf82136c82b8727115e7ea70577e57 (diff) |
rm point.toc
-rw-r--r-- | point.toc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/point.toc b/point.toc deleted file mode 100644 index 0911ca8..0000000 --- a/point.toc +++ /dev/null @@ -1,33 +0,0 @@ -pkg "point"; - - -#export Point ::= struct { - x, y: int; -}; -bar ::= fn() []int { - x:[]int = new(int,20); - for p, i := &x { - *p = i; - } - x -}; - - -#export x ::= bar(); - - -#export mk_point ::= fn(x, y:=0) p : Point { - p.x = x; - p.y = y; -}; - - -mk_point2 ::= fn(x, y:int) p: Point { - p = mk_point(x*x, y*y); -}; - -#export foo ::= fn(x :: int) int { - // k : Point = 95; - // p:=x[3]; -}; -#export a:=5;
\ No newline at end of file |