Tags, enclosed proc results and better error handling

This commit is contained in:
gingerBill
2016-07-11 00:10:15 +01:00
parent f7a669d342
commit 9f90ff50cf
10 changed files with 326 additions and 235 deletions
+2 -10
View File
@@ -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;
}