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-08 13:54:10 +02:00

23 lines
268 B
Plaintext

namespace main
struct Human {
age: ^u64
}
export func main(args: []^string): i64 {
let age: u64 = 23
let me = alloc Human {
age = &age
}
me.age^ = 24.5
test(me.age^)
return 0
}
func test(me: u64) {
c::printf("%d\n", me)
}