Mixing <const> with <comptime> #81
Replies: 1 comment 2 replies
-
This is not possible, because
The |
Beta Was this translation helpful? Give feedback.
-
This is not possible, because
The |
Beta Was this translation helpful? Give feedback.
-
Based on #80 comment I made about the generated C code, I've got curious to see how C++ would behave with
constexpr
in this case, as assigning<const>
to<const>
resembles this behavior.In C++ we can do the following:
and works as expected.
I have tried the same in Nelua and it does not work...
So, how exactly
<const>
getting assigned to another<const>
works behind the scenes during preprocessing procedure?Beta Was this translation helpful? Give feedback.
All reactions