aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-24 10:23:46 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-24 10:23:46 +0100
commitff229054a19a566309a1fea56384bfcdcd9fddad (patch)
treee0cbf20fe192825607e6991237dedc4ee59d9e11 /code
parentdb6abb97066e24c90d0048e6d2b2bc4c08041cf5 (diff)
Any order declarations at procedure scope (except variables)
Diffstat (limited to 'code')
-rw-r--r--code/demo.odin8
1 files changed, 3 insertions, 5 deletions
diff --git a/code/demo.odin b/code/demo.odin
index 7e4e5eed7..a302c39c8 100644
--- a/code/demo.odin
+++ b/code/demo.odin
@@ -4,17 +4,15 @@
main :: proc() {
- x :: proc() -> (int, int) {
- return 1, 2
- }
y :: proc() -> (int, int) {
return x()
}
+ x :: proc() -> (int, int) {
+ return 1, 2
+ }
fmt.println(y())
-
-
arena: mem.Arena
mem.init_arena_from_context(^arena, 1000)
defer mem.free_arena(^arena)