- Archive old documentation and test files to `docs/archive/` and `local_tests/`. - Remove various temporary and old files from the project root. - Add `nekocode-rust` analysis tool and its output files (`nekocode/`, `.nekocode_sessions/`, `analysis.json`). - Minor updates to `apps/chip8_nyash/chip8_emulator.nyash` and `local_tests` files. This commit cleans up the repository and sets the stage for further code modularization efforts, particularly in the `src/interpreter` and `src/parser` modules, based on recent analysis.
29 lines
977 B
Plaintext
29 lines
977 B
Plaintext
# Test Arc sharing for field access
|
|
static box Main {
|
|
init { console, server }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
me.console.log("🔬 Field Access Arc Sharing Test")
|
|
|
|
# Store socket in field
|
|
me.server = new SocketBox()
|
|
me.console.log("✅ Created me.server")
|
|
|
|
# Test 1: Multiple field accesses
|
|
local str1 = me.server.toString()
|
|
me.console.log("📊 First field access: " + str1)
|
|
|
|
local str2 = me.server.toString()
|
|
me.console.log("📊 Second field access: " + str2)
|
|
|
|
# Test 2: State change via field access
|
|
local bindResult = me.server.bind("127.0.0.1", 19888)
|
|
me.console.log("✅ Bind via field access: " + bindResult.toString())
|
|
|
|
local isServer = me.server.isServer()
|
|
me.console.log("🔍 isServer via field access: " + isServer.toString())
|
|
|
|
return "FIELD_ACCESS_ARC_TEST"
|
|
}
|
|
} |