Simplify generator
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user