From 5217eb55b4d0b53828d9ba4599a249216c813d42 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sun, 18 Dec 2016 20:34:55 +0000 Subject: Change of `proc` and `type` declaration syntax to "prefix" style `proc name()` from `name :: proc()` --- code/demo.odin | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'code') diff --git a/code/demo.odin b/code/demo.odin index d75250c6b..557753ff8 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,14 +1,14 @@ -Test1 :: type union { - A: int; - B: int; -}; +#import "atomic.odin"; +#import "fmt.odin"; +#import "hash.odin"; +#import "math.odin"; +#import "mem.odin"; +#import "opengl.odin"; +#import "os.odin"; +#import "sync.odin"; +#import "utf8.odin"; -Test :: type struct { - a: Test1; -}; +proc main() { + fmt.println("Here"); -main :: proc() { - test: Test; - match type x : ^test.a { - } -}; +} -- cgit v1.2.3