mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 09:22:22 -07:00
11 lines
223 B
Odin
11 lines
223 B
Odin
main :: proc() {
|
|
type Vec2: struct { x, y: f32; }
|
|
v := Vec2{1, 1};
|
|
a := [2]int{1, 2}; // Array 2 of int
|
|
s := []int{1, 2}; // Slice of int
|
|
_, _ = a, s;
|
|
// Equivalent to
|
|
// sa := [2]int{1, 2}; s := sa[:];
|
|
v.x = 1;
|
|
}
|