feat: Add parallel HTTP server E2E tests and enhance plugin system

- Add e2e_plugin_net_additional.rs with parallel server tests
- Fix test to properly handle request objects (no double accept)
- Add comprehensive net-plugin documentation
- Implement debug tracing for method calls
- Enhance plugin lifecycle documentation
- Improve error handling in plugin loader
- Add leak tracking infrastructure (for future use)
- Update language spec with latest plugin features

This enhances test coverage for concurrent HTTP servers and improves
the overall plugin system documentation and debugging capabilities.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-22 05:01:11 +09:00
parent 98e9893bf5
commit f2761004d3
20 changed files with 1288 additions and 105 deletions

View File

@ -97,6 +97,28 @@ box ClassName {
}
```
#### フィールドの可視性public/private
- `init { ... }` で宣言したフィールドは既定で public外部から参照・代入可能
- 追加で private フィールドを宣言する場合は `private { ... }` ブロックを使用
- 外部から private フィールドへ直接アクセスすることはできません(ゲッター/セッター経由)
```nyash
box User {
// 既定: init は public フィールド宣言
init { name }
// private フィールド宣言
private { age, passwordHash }
birth(n, a) { me.name = n; me.age = a }
setAge(a) { me.age = a }
getAge() { return me.age }
}
```
補足: 旧仕様では `init` の可視性が明確ではありませんでしたが、現在は「public」に統一されています。
#### **デリゲーションBox**
```nyash
box Child from Parent interface Comparable {
@ -522,4 +544,4 @@ loop(condition) { } # 統一ループ構文
**🎉 Nyash 2025は、AI協働設計による最先端言語システムとして、シンプルさと強力さを完全に両立しました。**
*最終更新: 2025年8月10日 - Arc<Mutex> Revolution + AI大相談会成功記念*
*最終更新: 2025年8月10日 - Arc<Mutex> Revolution + AI大相談会成功記念*