Re: Wish: scoped enum

2023-05-12 Thread Yair Lenga via Gcc
rsen, Gabriel, Thanks for your feedback. I read through the n2347 article, and I believe that your feedback is to leverage the C++ 'enum struct' grammer. As you can tell, I'm not a C++, and and I did not know that the 'SCOPED enum' is already available for using 'enum class' or 'enum struct'. Leve

Re: Wish: scoped enum

2023-05-12 Thread Yair Lenga via Gcc
Arsen, Gabriel, Thanks for your feedback. I read through the n2347 article, and I believe that your feedback is to leverage the C++ 'enum struct' grammer. As you can tell, I'm not a C++, and and I did not know that the 'SCOPED enum' is already available for using 'enum class' or 'enum struct'. Lev

Re: Wish: scoped enum

2023-05-11 Thread Gabriel Ravier via Gcc
On 5/12/23 01:58, Yair Lenga via Gcc wrote: Hi, I wonder if it will be possible to add support for "scoped" enum to GCC. The current C standard has one name space for all enums, and different name space for the members of each "struct". As a result, possible to say struct foo { int a } ; struct

Re: Wish: scoped enum

2023-05-11 Thread Arsen Arsenović via Gcc
Hi, Yair Lenga via Gcc writes: > I wonder if it will be possible to add support for "scoped" enum to GCC. > The current C standard has one name space for all enums, and different name > space for the members of each "struct". As a result, possible to say > > struct foo { int a } ; > struct bar {

Wish: scoped enum

2023-05-11 Thread Yair Lenga via Gcc
Hi, I wonder if it will be possible to add support for "scoped" enum to GCC. The current C standard has one name space for all enums, and different name space for the members of each "struct". As a result, possible to say struct foo { int a } ; struct bar { double a }; // This is different 'a