Delay importing entities till all other entities are collected

This commit is contained in:
Ginger Bill
2016-11-30 20:46:00 +00:00
parent ab2ca7cf59
commit be8b9bda2f
4 changed files with 141 additions and 293 deletions

View File

@@ -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)