Delay importing entities till all other entities are collected

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

No files matched your search

+2 -6
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)