This commit is contained in:
nub31
2025-05-08 18:57:38 +02:00
parent 1429c3a993
commit 626b2fef0c
5 changed files with 124 additions and 64 deletions

View File

@@ -1,12 +1,20 @@
import "c";
struct Human {
age: int64;
age: int64 = 0;
name: string;
}
global func main() {
printName();
while true {
let dad = new Human
{
name = "John";
};
printName(dad);
}
}
func printName(human: Human) {