Liste des Groupes | Revenir à cl c |
On Sun 2/9/2025 1:54 AM, Janis Papanagnou wrote:
That you can rely only, say,
rely on it with C99 but maybe not before and not in later C standards
conforming compilers?
Things take some wild swings wrt to VLA support as you progress through
various C standards beginning. Before C99 there was no VLA. In C99
everything VLA is required. In C11 everything VLA is optional. C23 takes
a hybrid approach: the whole thing is required, except support for
declaring automatic VLA objects is optional.
[...]
For my purpose it would be okay to know whether with the C99 version
(that I used) it's okay, or whether that's some GNU specific extension
or some such.
Formally, if you want to declare local (automatic) VLAs, then the only
version of C standard with which you are completely okay is C99. Later
versions make things more problematic.
However, GNU seems to be dedicated to supporting everything VLA-related.
Les messages affichés proviennent d'usenet.