runner: promote @local expansion to first-class (default ON) across vm & selfhost; docs updated to reflect standard sugar

This commit is contained in:
nyash-codex
2025-09-28 02:05:41 +09:00
parent 1994990f47
commit c409aa6ad1
5 changed files with 16 additions and 2 deletions

View File

@ -11,6 +11,7 @@ local x = 10, y = 20, z # 混合初期化
```
注意: Nyash は `var`/`let` を採用していません。常に `local` で明示宣言してください(未宣言名への代入はエラー)。
補足: 行頭 `@name[:T] = expr` は標準ランナーで `local name[:T] = expr` に自動展開されます(意味は不変)。
### Box定義クラス
```nyash