- 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>
10 lines
334 B
Plaintext
10 lines
334 B
Plaintext
// Phase 9.78e test - InstanceBox with StringBox
|
|
|
|
local str
|
|
str = new StringBox("Hello, Nyash!")
|
|
print("Created StringBox: " + str)
|
|
|
|
// Try to call methods - this should fail with the current implementation
|
|
// print("Type: " + str.type_name()) // This would error without call_method integration
|
|
|
|
print("Test completed successfully") |