diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-02-05 23:52:01 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-02-05 23:52:01 +0000 |
| commit | 00c74891570e3f3f2415e443d6625cc3eadb7d49 (patch) | |
| tree | 54b3cbdd6447bd97ac9081a673384871f8b00849 /code | |
| parent | b1562edccf9ea972ec8caf5faebea07cf27559bb (diff) | |
Begin writing dynamic map procs and fix `using` bug in IR
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/code/demo.odin b/code/demo.odin index edcdaa49f..5c1ef40c0 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -12,9 +12,14 @@ main :: proc() { Value :: type f32; - m0: map[int]Value; - m1: map[string]Value; - m2: map[f32]Value; + m: map[int]Value; + m[123] = 345.0; + x, ok := m[123]; + if ok { + fmt.println(x); + } + + // fm: map[128, int]f32; /* |