Question
Struct initialisation in Cosmic compiler
Posted on December 02, 2013 at 14:10
Hi there
I'm currently using the 32k Special EditionCosmic compiler for STM8, version 4.3.11. There seems to be partial support for C99 features, but there doesn't seem to be support for ''designated initialisers'' (see for example). I've found these really useful in the past to ensure that my structures are correctly initialised even if I decide to add or re-order members. Positional initialisation is a bit of a maintenance nightmare, by comparison. Does anyone know if (a) these are supported in the paid-for version, or (b) might be implemented soon? Best regards Jonathan