diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-04 11:23:48 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-04 11:23:48 +0100 |
| commit | 689a0c0b4955e5325c5409855632a3d4a154b41e (patch) | |
| tree | 9b6283b8620f053f33025cf7511daef71d261d03 /code | |
| parent | bc16b290ba6c2168baf1153b4c7691e679f68b46 (diff) | |
*_of as keyords; Allow constant aliasing for user/built-in procedures, import names, and library names
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/code/demo.odin b/code/demo.odin index 4b9c27a15..91f3e132e 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,6 +1,5 @@ import ( "fmt.odin"; -/* "atomics.odin"; "bits.odin"; "decimal.odin"; @@ -16,6 +15,7 @@ import ( "types.odin"; "utf8.odin"; "utf16.odin"; +/* */ ) @@ -370,9 +370,11 @@ main :: proc() { foo :: proc(x: type, y: f32) do fmt.println("#2", type_info(x), y); foo :: proc(x: type) do fmt.println("#3", type_info(x)); - foo(y = 3785.1546, x = 123); - foo(x = int, y = 897.513); - foo(x = f32); + f :: foo; + + f(y = 3785.1546, x = 123); + f(x = int, y = 897.513); + f(x = f32); /* general_stuff(); foreign_blocks(); |