- Implement C ABI plugin system with workspace configuration - Create FileBox plugin with full read/write/exists/toString support - Fix critical memory management issues (double free) with Arc - Add comprehensive test suite for dynamic FileBox functionality - Achieve 98% build time improvement for plugin (2.87s vs 2-3min) - Maintain full backward compatibility with feature flags FileBox now loads dynamically, drastically reducing build times while maintaining all functionality. Next: Math/Time dynamic migration. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
771 B
Plaintext
30 lines
771 B
Plaintext
// FileBox シンプルテスト - 動的ライブラリ実装
|
|
|
|
static box Main {
|
|
init { console }
|
|
|
|
main() {
|
|
me.console = new ConsoleBox()
|
|
me.console.log("Test 1: FileBox creation")
|
|
|
|
// FileBox作成テスト
|
|
local file1
|
|
file1 = new FileBox("test1.txt")
|
|
me.console.log("FileBox created")
|
|
|
|
// exists()テスト
|
|
local exists1
|
|
exists1 = file1.exists()
|
|
me.console.log("exists() called")
|
|
|
|
// toString()単独テスト(文字列連結なし)
|
|
local str1
|
|
str1 = file1.toString()
|
|
me.console.log("toString() called")
|
|
|
|
// 最後に値を表示
|
|
me.console.log(str1)
|
|
|
|
return "success"
|
|
}
|
|
} |