The language specification makes no reference to function-level static variables (other than in the grammar production rules). Static member variables and functions are mentioned in the "Attributes" page. That page should (at a minimum) specify that: - Local variables with the static storage class have a lifetime that extends beyond the function call. - It should mention when and how they are initialised (before main, or at first use?). - It should clarify whether statics with the same name, but different block scopes are allowed. i.e. void main() { { static int x; } { static int x; } // allowed? }
Fixed in function.html
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル