Files
hakorune/examples/demo_boxes_native.nyash
Moe Charm 1b98f85df9 🚀 Phase 10.11: Everything is Plugin革命完了!
主な変更:
- ConsoleBox/MathBoxプラグイン実装・登録完了
- nyash_box.toml 2ファイルシステム設計(中央レジストリ+個別仕様書)
- 全プラグインにnyash_box.tomlテンプレート追加
- プラグイン優先機能(NYASH_USE_PLUGIN_BUILTINS=1)文書化
- ビルトインBox削除準備(ChatGPT5実装中)
- ネイティブビルドデモ追加(Linux/Windows動作確認済み)

Everything is Box → Everything is Plugin への歴史的転換!
開発20日目にしてビルトインBox全削除という革命的決定。

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 01:33:52 +09:00

28 lines
568 B
Plaintext

// Demo for native build
print("📦 1. Basic Box Creation:")
local str
str = new StringBox("Hello, Nyash!")
print(" StringBox: " + str)
local num
num = new IntegerBox(42)
print(" IntegerBox: " + num)
local bool
bool = new BoolBox(true)
print(" BoolBox: " + bool)
print("")
print("🔄 2. Box Operations:")
local result
result = new IntegerBox(10) + new IntegerBox(32)
print(" 10 + 32 = " + result)
local hello
hello = new StringBox("Hello, ")
local world
world = new StringBox("World!")
result = hello + world
print(" \"Hello, \" + \"World!\" = " + result)