aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-06-12 12:34:55 +0100
committerGinger Bill <bill@gingerbill.org>2017-06-12 12:34:55 +0100
commit33eeb5852190ea6a363eced57050ba739061a32b (patch)
treebea04319c89a92b63793a18e0a93790737fa9d84 /code
parent8fafdb185cefee691e1c2e1990abf8cd3c97ddf4 (diff)
Prefix `proc` syntax
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 85f17e7c9..69323f95d 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -11,6 +11,9 @@
#import "utf8.odin";
#import "utf16.odin";
-const main = proc() {
- fmt.println("Hello");
+proc main() {
+ var x = proc() {
+ fmt.println("Hello");
+ };
+ x();
}