mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-18 08:41:31 -07:00
Slices and slice expressions
This commit is contained in:
+11
-2
@@ -1,9 +1,18 @@
|
||||
type float: f32;
|
||||
type Vec2: struct {
|
||||
x, y: f32;
|
||||
}
|
||||
|
||||
|
||||
print_string_array :: proc(args: []string) {
|
||||
args[0] = "";
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
thing :: proc(n: int) -> int, f32 {
|
||||
return n*n, 13.37;
|
||||
}
|
||||
|
||||
_, _ := 1, 2;
|
||||
thang :: proc(a: int, b: f32, s: string) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user