News for hackers. Stuff that matters.
Re:New C features in GCC 13 by Kranar on Thursday May 04, 2023 @12:32PM (#35818101)
> constexpr reduces the need for macro-constants

const is sufficient to eliminate the use of macro-constants with the exception of the use of such constants by the preprocessor itself (in which case constexpr is also inapplicable).

Re:New C features in GCC 13 by peterfirefly on Thursday May 04, 2023 @12:48PM (#35818401)

    #define DEF   (ABC+(GHI<<JKL_SHIFT))
Re:New C features in GCC 13 by Kranar on Thursday May 04, 2023 @05:00PM (#35822009)
Please make a point.
Re:New C features in GCC 13 by peterfirefly on Thursday May 04, 2023 @05:42PM (#35822493)
I did. This is exactly what we need for constexpr for.
Re:New C features in GCC 13 by Kranar on Thursday May 04, 2023 @09:46PM (#35824379)
Nothing you've demonstrated requires the use of constexpr. A const is perfectly suited for that.
Re:New C features in GCC 13 by peterfirefly on Friday May 05, 2023 @02:29AM (#35825863)
One of us doesn't know C.
Re:New C features in GCC 13 by Kranar on Friday May 05, 2023 @11:36AM (#35830628)
https://godbolt.org/z/de1YGG5r1

I hope for your sake that you don't speak this way other than anonymously on the Internet; it reflects very poorly of you.