This commit is contained in:
nub31
2025-07-02 23:25:23 +02:00
parent 2b331e432a
commit 291e882a4b
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
}