This commit is contained in:
nub31
2025-06-02 15:52:06 +02:00
parent 96ad3d2677
commit 00a249f84d
4 changed files with 56 additions and 154 deletions

View File

@@ -1,12 +1,29 @@
namespace main
export func main(args: []^string) {
c::printf("%d\n", args.count)
let i: i64
struct Human {
name: string
age: i64
}
while i < args.count {
c::printf("%s\n", args[i])
i = i + 1
export func main(args: []^string) {
// c::printf("%d\n", args.count)
// let i: i64
// while i < args.count {
// c::printf("%s\n", args[i])
// i = i + 1
// }
let human = alloc Human {
age = 23
name = "oliver"
}
c::printf("%s is %d years old\n", human.name, human.age)
// human.name = "hubert"
// human.age = 92
c::printf("%s is %d years old\n", human.name, human.age)
}