pkg "point"; #export Point ::= struct { x, y: int; }; bar ::= fn() []int { x:[]int = new(int,20); each p, i := &x { *p = i; } x }; #export x ::= bar(); #export mk_point ::= fn(x, y: int) 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;