aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-01 19:08:03 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-01 19:08:03 +0000
commita48e0c7179cfe78f3163a3e471f7401502d8c437 (patch)
tree081ae81d35419df529cf752f11d41446b2e7c1f0 /code
parent3f1195cd03ac009eee508b7d0e086807507a0ef4 (diff)
Begin transition to Jai-like 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 376ed30ac..141788416 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -11,7 +11,7 @@ import {
win32 "sys/windows.odin";
}
-const Thing = enum f64 {
+Thing :: enum f64 {
_, // Ignore first value
A = 1<<(10*iota),
B,
@@ -19,6 +19,9 @@ const Thing = enum f64 {
D,
};
-const main = proc() {
+main :: proc() {
fmt.println(Thing.A, Thing.B, Thing.C, Thing.D);
+
+ x := 123;
+ fmt.println(x);
}