mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-21 23:12:03 -07:00
Tags, enclosed proc results and better error handling
This commit is contained in:
+2
-10
@@ -1,15 +1,7 @@
|
||||
type Vec2: struct {
|
||||
x, y: f32;
|
||||
}
|
||||
|
||||
print_string_array :: proc(args: []string) {
|
||||
args[0] = "";
|
||||
}
|
||||
|
||||
main :: proc() {
|
||||
x := 0;
|
||||
x : u8 = 0;
|
||||
|
||||
thing :: proc(n: int) -> int, f32 {
|
||||
thing :: proc(n: int) -> (int, f32) {
|
||||
return n*n, 13.37;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user