Mixing declarations and statements is C11#11052
Conversation
There was a problem hiding this comment.
@dra27 is the one who is most emotional about supporting old MSVC versions, so I'll wait for his opinion before pressing the Merge button. My opinion is that MSVC support for OCaml 5.1 is still unclear [edit: it will not be in 5.0, that's for sure], but if we can pull it at all, requiring a recent enough version of MSVC is completely acceptable. So, I'm in favor of this PR.
|
(I'm also in support, and I guess anyone else writing C code, this limitation is really annoying. I drool at the idea of |
|
Emotional is a funny way of putting it, but no objection from me - MSVC support requires at least C++'s Microsoft's already put the C++23 version of |
|
OK, great! So let's merge and enjoy declarations as statements. I'm not sure yet this needs a Changes entry; one can be added later if absolutely needed. |
This PR enables mixing declarations and statements. The motivation is the bump in supported compiler versions coming with 5.0.
The question is whether support for too old version of MSVC goes away. Here, too old means older than VS2013 (MSVC v18.0), which supports mixing declarations and statements.