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/src/main.nub
2025-08-13 20:30:43 +02:00

23 lines
263 B
Plaintext

extern func puts(fmt: cstring)
struct Human
{
name: cstring
func str(): cstring
{
return this.name
}
}
func main(args: []cstring): i64
{
let human = alloc Human {
name = "oliver"
}
puts(human.str())
return 0
}