Did you manage to compile this example?
Yes, actually:
$ cat kekw.zc include <stdio.h> fn main() { var f = fopen("file.txt", "r"); defer fclose(f); var ch: byte; if fread(&ch, 1, 1, f) <= 0 { return -1; } return 0; } $ ./zc --emit-c kekw.zc [zc] Compiling kekw.zc... $ tail -n 12 out.c int main() { { __auto_type f = fopen("file.txt", "r"); uint8_t ch; if ((fread((&ch), 1, 1, f) <= 0)) { return (-1); } return 0; fclose(f); } }
Yes, actually: