Static Initialization of Static Arrays The spec gives this code sample: int[3] a = [ 1:2, 3 ]; // a[0] = 0, a[1] = 2, a[2] = 3 Two paragraphs below it is the statement: "If any members of an array are initialized, they all must be." On this basis, the code sample is invalid. There has been some debate over which should be correct: the code sample or the requirement to initialize every element when using an array initializer. My vote goes to the latter being the correct one, in which case the code sample needs to be changed to one that's valid, e.g. int[3] a = [ 1:2, 3, 0:0 ]; // a[0] = 0, a[1] = 2, a[2] = 3
Fixed DMD 0.162 (changed documentation)
It appears that Walter's assorted copies of the documentation have become out of sync. The contradiction has come right back again in exactly the same form.
Resurfaced as issue 511. Duping this to that, considering that this has been logged as fixed. *** This bug has been marked as a duplicate of 511 ***
Oops, wrong issue.... *** This bug has been marked as a duplicate of 508 ***
dlang/dlang-bot pull request #275 "Mention all approving reviewers in the commit message" was merged into master: - 21336e502f97e582a6cb4deab5d232c476060c5f by Vladimir Panteleev: Mention all approving reviewers in the commit message Fixes #181. https://github.com/dlang/dlang-bot/pull/275
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル