From 689a0c0b4955e5325c5409855632a3d4a154b41e Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Tue, 4 Jul 2017 11:23:48 +0100 Subject: *_of as keyords; Allow constant aliasing for user/built-in procedures, import names, and library names --- code/demo.odin | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'code') 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(); -- cgit v1.2.3