10 ms·
> Error: C designator-list not supported yet I guess only a subset of C11 is supported? Is there all of C89?
by TazeTSchnitzel 4y ago
> Error: C designator-list not supported yet
I guess only a subset of C11 is supported? Is there all of C89?
- WalterBright 4y agoDesignator-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...
- Kukumber 4y agoInteresting.. i personally use that a lot in C, this lib for example: https://github.com/floooh/sokol#sokol_gfxh https://github.com/floooh/sokol#sokol_gfxh I couldn't live without it https://dlang.org/spec/struct.html#static_struct_init https://dlang.org/spec/struct.html#static_struct_init D support it, what's blocking it?