Simplify generator

This commit is contained in:
nub31
2025-06-02 21:47:09 +02:00
parent e874b8e155
commit 003701c192
5 changed files with 253 additions and 163 deletions

View File

@@ -6,12 +6,10 @@ struct Human {
}
export func main(args: []^string) {
let human = [1]Human
human[0] = alloc Human {
let me = alloc Human {
name = "oliver"
age = 123
age = 32
}
c::printf("%s\n", human[1].name)
c::printf("%s is %d years old\n", me.name, me.age)
}