This repository has been archived on 2025-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive-2/example/main.nub
2025-06-02 19:56:38 +02:00

17 lines
242 B
Plaintext

namespace main
struct Human {
name: string
age: i64
}
export func main(args: []^string) {
let human = [1]Human
human[0] = alloc Human {
name = "oliver"
age = 123
}
c::printf("%s\n", human[1].name)
}