
Feb. 11, 2022
8:12 a.m.
On Thu, Feb 10, 2022 at 6:31 PM Petr Viktorin <encukou@gmail.com> wrote:
I like it. I want to use anonymous union. It makes complex structure like PyDictKeysObject simple a little.
I confirmed that XLC supports it. https://www.ibm.com/docs/en/xl-c-and-cpp-aix/13.1.3?topic=types-structures-u...
Ah, I've also wanted anonymous unions in the past! There's a little problem in that they're not valid in C++, so we can't have them in public headers.
C++ 11 supports anonymous union with some reasonable limitations. https://en.cppreference.com/w/cpp/language/union XL C/C++ also support it. So we can use it if we decided to use it. Regards, -- Inada Naoki <songofacandy@gmail.com>