Andrey Tarasevich
2022-11-12 04:49:54 UTC
https://open-std.org/jtc1/sc22/wg14/www/docs/n2838.htm
Section "3.2.1. Rationale" of that proposal begins with
"This changes the specification when the operand of sizeof is *not*
an lvalue of VLA type [...]"
Note the "not" in the above sentence: "not an lvalue of VLA type".
And then it proceeds to demonstrate the proposed change with an example
in 3.2.2 where the `sizeof` in question (whose behavior will supposedly
change) is clearly applied to an lvalue of VLA type!
So, what is that "not" doing in the initial sentence of 3.2.1? Is this
just a typo/miswording? Or am I missing something about the intended
meaning of that sentence?
Section "3.2.1. Rationale" of that proposal begins with
"This changes the specification when the operand of sizeof is *not*
an lvalue of VLA type [...]"
Note the "not" in the above sentence: "not an lvalue of VLA type".
And then it proceeds to demonstrate the proposed change with an example
in 3.2.2 where the `sizeof` in question (whose behavior will supposedly
change) is clearly applied to an lvalue of VLA type!
So, what is that "not" doing in the initial sentence of 3.2.1? Is this
just a typo/miswording? Or am I missing something about the intended
meaning of that sentence?
--
Best regards,
Andrey
Best regards,
Andrey