diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-11-30 20:46:00 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-11-30 20:46:00 +0000 |
| commit | be8b9bda2f387048c53264da154a5c0373dfd316 (patch) | |
| tree | e8aab89de09d75b149e3448ba6a15f48627ac6f0 /code | |
| parent | ab2ca7cf5975b78c254b87fa5590be147853b79a (diff) | |
Delay importing entities till all other entities are collected
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/code/demo.odin b/code/demo.odin index 455dadb46..49936f79b 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -2,16 +2,12 @@ #import "utf8.odin" main :: proc() { - + MAX :: 64 buf: [MAX]rune backing: [MAX]byte offset: int - when MAX > 0 { - msg := "Hello" - } - - MAX :: 64 + msg := "Hello" count := utf8.rune_count(msg) assert(count <= MAX) |