changed the way that functions are defined
This commit is contained in:
@@ -2,14 +2,14 @@ import ../stdlib/stdlib.sl
|
||||
import ../stdlib/io.sl
|
||||
import ../fn.sl
|
||||
|
||||
: main
|
||||
word main
|
||||
2 40 +
|
||||
puti cr
|
||||
extend-syntax
|
||||
foo(1, 2)
|
||||
puti cr
|
||||
0
|
||||
;
|
||||
end
|
||||
|
||||
fn foo(int a, int b){
|
||||
return a + b;
|
||||
|
||||
Reference in New Issue
Block a user