mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Begin reording of struct members by default.
This commit is contained in:
+8
-1
@@ -1,10 +1,17 @@
|
||||
#load "basic.odin"
|
||||
|
||||
Vector3 :: struct { x, y, z: f32 }
|
||||
main :: proc() {
|
||||
Vector3 :: struct {
|
||||
x: i8
|
||||
y: i32
|
||||
z: i16
|
||||
}
|
||||
|
||||
v := Vector3{1, 4, 9}
|
||||
|
||||
t := type_info(v)
|
||||
|
||||
println(123, "Hello", true, 6.28)
|
||||
println([4]int{1, 2, 3, 4})
|
||||
println(v)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user