Files
hakorune/local_tests/static_main.nyash

15 lines
325 B
Plaintext
Raw Normal View History

// Static box Main pattern - current working syntax
static box Main {
init { console, result }
main() {
me.console = new ConsoleBox()
me.console.log("Hello from Static Main!")
local temp
temp = 42
me.result = temp
return "Main completed!"
}
}