docs: Add architecture decision to CLAUDE.md - Box/ExternCall boundary design summary

This commit is contained in:
Selfhosting Dev
2025-09-11 21:42:40 +09:00
parent 0ac22427e5
commit 82cd2affbc

View File

@ -361,6 +361,16 @@ box MyBox {
} }
``` ```
### 🏗️ アーキテクチャ決定事項2025-09-11
**Box/ExternCall境界設計の最終決定**:
- **基本Box**: nyrt内蔵String/Integer/Array/Map/Bool
- **拡張Box**: プラグインFile/Net/User定義
- **ExternCall**: 最小5関数のみprint/error/panic/exit/now
- **統一原則**: すべてのBoxはBoxCall経由特別扱いなし
- **表現統一**: Box=ハンドル(i64)、i8*は橋渡しのみ
詳細: [Box/ExternCall設計](docs/development/architecture/box-externcall-design.md)
## 📚 ドキュメント構造 ## 📚 ドキュメント構造
### 🎯 最重要ドキュメント(開発者向け) ### 🎯 最重要ドキュメント(開発者向け)