15 lines
267 B
Plaintext
15 lines
267 B
Plaintext
|
|
// IntegerBox plugin demo with ConsoleBox
|
||
|
|
static box Main {
|
||
|
|
main() {
|
||
|
|
local c
|
||
|
|
c = new ConsoleBox()
|
||
|
|
|
||
|
|
local i
|
||
|
|
i = new IntegerBox()
|
||
|
|
i.set(42)
|
||
|
|
c.println("IntegerBox set to 42")
|
||
|
|
c.println("get() = " + i.get())
|
||
|
|
|
||
|
|
return i.get()
|
||
|
|
}
|
||
|
|
}
|