From 0ffe4b600df51fd8ee5658f9a9296efe86cb67ea Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sun, 30 Oct 2016 19:20:47 +0000 Subject: Interpreter - call internal procedures --- code/demo.odin | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'code') 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) } -- cgit v1.2.3