diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-12-18 20:34:55 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-12-18 20:34:55 +0000 |
| commit | 5217eb55b4d0b53828d9ba4599a249216c813d42 (patch) | |
| tree | 88d8106a8ca42eb64fc273f529c012f754f33f61 /code | |
| parent | 062a2c63e16c31cd68f758ec8946b9cd3bfe4d34 (diff) | |
Change of `proc` and `type` declaration syntax to "prefix" style
`proc name()` from `name :: proc()`
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 24 |
1 files changed, 12 insertions, 12 deletions
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 { - } -}; +} |