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/examples/hello-world/main.nub
nub31 caacf3d402 ...
2025-10-22 20:16:50 +02:00

18 lines
271 B
Plaintext

module "main"
extern "puts" func puts(text: cstring)
extern "main" func main(argc: i64, argv: [?]cstring): i64
{
let names: []cstring = ["test", "test2"]
puts(names[0])
puts(names[1])
for name, i in names
{
puts(name)
}
return 0
}