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 626b2fef0c ...
2025-05-08 18:57:38 +02:00

22 lines
272 B
Plaintext

import "c";
struct Human {
age: int64 = 0;
name: string;
}
global func main() {
while true {
let dad = new Human
{
name = "John";
};
printName(dad);
}
}
func printName(human: Human) {
puts(human.name);
}