Liste des Groupes | Revenir à cl c |
David Brown <david.brown@hesbynett.no> writes:MS is in a somewhat different position than other C compiler vendors. They decided - for various reasons - not to support C99 other than parts that had direct correspondence with C++ features. Without having followed any of the proceedings, I suspect the reason VLAs are optional in C23 is because MS wants to avoid adding more than they have to before being able to jump to (approximate) C23 conformance. "constexpr" will be relatively easy for them, as they have it in C++ already.
[...]I know there are compilers that don't support VLAs at all - that'sWhy would we expect that?
fair enough (and that's why I specifically mentioned it). We can
expect that compilers that can't handle VLAs at all will not support
C23 constexpr, or any suggested C++ style extensions to the semantics
of "const".
IIRC, Microsoft has decided not to support VLAs in its C compiler. If
they chose not to support constexpr, they could not claim C23 conformance.
Les messages affichés proviennent d'usenet.