15 lines
325 B
Plaintext
15 lines
325 B
Plaintext
|
|
// 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!"
|
||
|
|
}
|
||
|
|
}
|