This commit is contained in:
nub31
2025-09-16 16:02:08 +02:00
parent ab53073273
commit 826f8ffad3
8 changed files with 130 additions and 36 deletions

View File

@@ -2,26 +2,17 @@ module "main"
extern "puts" func puts(text: cstring)
struct Name
{
first: cstring
last: cstring
}
struct Human
{
name: Name
}
extern "main" func main(args: []cstring): i64
{
let x: Human = {
name = {
first = "oliver"
last = "stene"
}
let x = [2]cstring
x[0] = "test1"
x[1] = "test2"
for u in x
{
puts(u)
}
puts(x.name.last)
return 0
}