21 lines
527 B
Plaintext
21 lines
527 B
Plaintext
// Test for Arc sharing - checking if same Box ID is returned
|
|
static box Main {
|
|
init { server }
|
|
|
|
main() {
|
|
me.server = new SocketBox()
|
|
|
|
print("=== First access ===")
|
|
local temp1
|
|
temp1 = me.server
|
|
print("Box ID: " + temp1.toString())
|
|
|
|
print("=== Second access ===")
|
|
local temp2
|
|
temp2 = me.server
|
|
print("Box ID: " + temp2.toString())
|
|
|
|
// If Arc sharing works, both should have same ID
|
|
return temp1
|
|
}
|
|
} |