diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-18 11:42:16 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-18 11:42:16 +0100 |
| commit | f7d8ba408cae67179b87e738eda2dbc3f08cd305 (patch) | |
| tree | 214572a44783b58954b3acdf5a373fb699201c9c /code/demo.odin | |
| parent | 9a8759efefa24f5ae1e6d91b67dca72357a99ff9 (diff) | |
Fix some preload bugs.
Diffstat (limited to 'code/demo.odin')
| -rw-r--r-- | code/demo.odin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/code/demo.odin b/code/demo.odin index a1ffabb6e..8afbe88b8 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -41,8 +41,8 @@ expand :: proc(table: ^$T/Table) { } } -put :: proc(table: ^$T/Table, key: T.Key, value: T.Value) { -// put :: proc(table: ^Table($K, $V), key: K, value: V) { +// put :: proc(table: ^$T/Table, key: T.Key, value: T.Value) { +put :: proc(table: ^Table($Key, $Value), key: Key, value: Value) { hash := get_hash(key); // Ad-hoc method which would fail in differentcope index := find_index(table, key, hash); if index < 0 { @@ -142,6 +142,7 @@ foo3 :: proc(a: type/Vector(3, $T)) {fmt.println("foo3", a{}); } + main :: proc() { foo1(Vector(3, f32)); foo1(Vector3); |