This commit is contained in:
nub31
2025-07-02 23:25:23 +02:00
parent 726a7a7e25
commit 28c5cd79f5
3 changed files with 172 additions and 91 deletions

View File

@@ -6,20 +6,16 @@ struct Human
age: i64
}
func test() {
}
export func main(args: []cstring): i64
{
let x: []cstring
let x: Human
x = [2]cstring
x = alloc Human {
name = "John"
age = 32
}
x[0] = "test1"
x[1] = "test2"
c::puts(x[1])
c::puts(x.name)
return 0
}