Moe Charm
58f92c178d
feat(phase-9.75g-0): Complete BID-FFI Day 5 - Plugin method calling system
## 🎉 Major Achievement
- BID-FFI FileBox plugin fully functional with Nyash integration
- Complete plugin-backed file I/O operations working
- Successful write/read operations via FFI interface
## ✅ What Works
- Plugin loading from nyash.toml configuration
- FileBox plugin instantiation: `new FileBox(path)`
- Method calls: `f.write("text")`, `f.read()`
- Complete round-trip: Nyash → Plugin → File → Plugin → Nyash
## 🔧 Implementation Details
- Added PluginFileBox method dispatch in execute_method_call()
- Implemented execute_plugin_file_method() for read/write/exists/close
- Fixed "Cannot call method on non-instance type" error
- Plugin methods work via TLV encoding/FFI/decoding
## 🚨 Known Issue (Next Phase)
Current implementation uses hardcoded method names (read/write/exists/close).
This violates BID-FFI dynamic principles - methods should be discovered
from plugin metadata, not hardcoded in Nyash interpreter.
## 📊 Test Results
```
local f
f = new FileBox("test.txt")
f.write("Hello from Nyash via plugin\!")
print("READ=" + f.read())
# Output: READ=Hello from Nyash via plugin\!
```
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-18 11:44:59 +09:00
..
2025-08-18 11:44:59 +09:00
2025-08-18 11:44:59 +09:00
2025-08-15 03:08:09 +00:00
2025-08-16 11:24:03 +09:00
2025-08-13 05:06:43 +00:00
2025-08-18 08:34:19 +09:00
2025-08-16 11:24:03 +09:00
2025-08-16 11:24:03 +09:00
2025-08-11 07:55:41 +09:00
2025-08-15 11:44:10 +09:00
2025-08-09 16:12:14 +09:00
2025-08-18 11:07:03 +09:00
2025-08-18 08:34:19 +09:00
2025-08-18 11:07:03 +09:00
2025-08-16 11:24:03 +09:00
2025-08-17 13:49:35 +09:00
2025-08-11 20:32:25 +00:00
2025-08-18 08:34:19 +09:00
2025-08-11 20:38:39 +00:00
2025-08-16 11:24:03 +09:00
2025-08-09 16:12:14 +09:00