struct vec { float x,y,z,w; alias x r; //! for color access alias y g; //! ditto alias z b; //! ditto alias w a; //! ditto } void main() { vec a = {x: 0, g: 0, b: 0, a: 1}; } test.d(13): Error: vec.g is not a per-instance initializable field test.d(13): Error: g is not a field of vec test.d(13): Error: vec.b is not a per-instance initializable field test.d(13): Error: b is not a field of vec test.d(13): Error: vec.a is not a per-instance initializable field test.d(13): Error: a is not a field of vec
D2 patch: https://github.com/D-Programming-Language/dmd/pull/611
https://github.com/D-Programming-Language/dmd/commit/95a933d16e732cb8f70745a0be6eca6d06b6b6be https://github.com/D-Programming-Language/dmd/commit/aec19256ad52f5c73c177012d67883a5fef344af
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル