This repository has been archived on 2025-10-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive/example/program.nub
nub31 3fd004281e ...
2025-05-17 19:23:08 +02:00

15 lines
184 B
Plaintext

import c
struct Test {
text: ^string
}
global func main(argc: i64, argv: i64) {
text = "test"
x = new Test {
text = &text
}
printf("%s\n", x.text)
}