- instance_v2 now includes legacy compatibility layer - All interpreter code migrated to use instance_v2 - Added legacy field access methods (get_fields, set_field_legacy, etc.) - Fixed type conversion issues (NyashValue vs SharedNyashBox) - instance.rs still exists but no longer used in interpreter - TODO: Remove instance.rs completely in next phase - TODO: Implement proper SharedNyashBox -> NyashValue conversion 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
313 B
Plaintext
14 lines
313 B
Plaintext
// Test FileBox with no-argument methods
|
|
local file
|
|
file = new FileBox()
|
|
print("Created FileBox")
|
|
|
|
// Try read() - no arguments
|
|
local content
|
|
content = file.read()
|
|
print("Read result: " + content)
|
|
|
|
// Try close() - no arguments
|
|
local close_result
|
|
close_result = file.close()
|
|
print("Close result: " + close_result) |