December 17, 2022 [Issue 7014] Better union initialization syntax | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7014 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P4 -- |
September 23 [Issue 7014] Better union initialization syntax | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=7014 Nick Treleaven <nick@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |nick@geany.org Resolution|--- |FIXED --- Comment #4 from Nick Treleaven <nick@geany.org> --- (In reply to bearophile_hugs from comment #0) > union Foo { int s; uint u; }; > void bar(Foo f) {} > void main() { > bar(Foo(u:5)); > } That is implemented as of: https://dlang.org/changelog/2.108.0.html#dmd.named-arguments -- |
Copyright © 1999-2021 by the D Language Foundation