2 ms·
Designator-list support has since been added. The multi-layer designators are still to be done, though (they're rarely used, so are a lower priority).
by WalterBright 4y ago
Designator-list support has since been added. The multi-layer designators are still to be done, though (they're rarely used, so are a lower priority).
- flohofwoe 4y agoI think something along those lines (rarely used...) was also given by the C++ Committee as justification why so much of the C99 designated init feature set was left out of C++20, which is a bit of a shame. All C99 designated-init 'sub-features' complement each other nicely once you start using them. It's a great way for building 'data-centric' APIs. For instance check out this call to create a 3D-API pipeline-state-object in C99: https://github.com/floooh/sokol-samples/blob/ad9047e228a84413d379e858eed49e5e702a0892/sapp/cube-sapp.c#L80-L98 https://github.com/floooh/sokol-samples/blob/ad9047e228a8441...