mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 04:38:16 +00:00
Random Order File Scope Declaration
This commit is contained in:
+18
-4
@@ -1,12 +1,26 @@
|
||||
main :: proc() {
|
||||
x : u8 = 0;
|
||||
x := "Yep";
|
||||
|
||||
thing :: proc(n: int) -> (int, f32) {
|
||||
return n*n, 13.37;
|
||||
}
|
||||
|
||||
thang :: proc(a: int, b: f32, s: string) {
|
||||
}
|
||||
thang(thing(1), x);
|
||||
|
||||
thang(thing(1), "Yep");
|
||||
v: Vec2;
|
||||
}
|
||||
|
||||
thang :: proc(a: int, b: f32, s: string) {
|
||||
a = 1;
|
||||
b = 2;
|
||||
s = "Hello";
|
||||
}
|
||||
|
||||
z := y;
|
||||
y := x;
|
||||
x := 1;
|
||||
|
||||
type Vec2: struct {
|
||||
x, y: f32;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user