v0.0.3 Build

This commit is contained in:
Ginger Bill
2016-11-17 22:58:00 +00:00
parent 4895031df5
commit 24ca106521
15 changed files with 2013 additions and 289 deletions
+3 -29
View File
@@ -1,32 +1,6 @@
x: i64 = 123
Vec2 :: struct {
x, y: i64
}
#import "fmt.odin"
#import "game.odin"
main :: proc() {
foo :: proc() -> i64 {
bar :: proc() -> (i64, i64) {
a := [3]i64{7, 4, 2}
v := Vec2{a[0], 2}
return v.x, v.y
}
x, y := bar()
return x + y
}
test :: proc(s: string) -> string {
return s
}
foo()
x = test("Hello").count as i64
xp := ^x
p := xp^
z := [..]i64{1, 2, 3, 4}
z[0] = p
fmt.println("Hellope, everybody!")
}