diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-10-30 19:20:47 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-10-30 19:20:47 +0000 |
| commit | 0ffe4b600df51fd8ee5658f9a9296efe86cb67ea (patch) | |
| tree | a72fb5daff358ad45e63c10f5d24ec3e561bd0f5 /code/demo.odin | |
| parent | ca311c4a59a34c0b516a415df37e7dd9d9fb65bf (diff) | |
Interpreter - call internal procedures
Diffstat (limited to 'code/demo.odin')
| -rw-r--r-- | code/demo.odin | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/code/demo.odin b/code/demo.odin index 0899cc111..b29ef97ec 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,6 +1,11 @@ #import "fmt.odin" main :: proc() { + foo :: proc(x: i64) -> i64 { + return -x + 1 + } + x, y: i64 = 123, 321 y = x + 2 - y + x = foo(y) } |