A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2019-April/157132.html below:

[Python-Dev] PEP 7: Adding anonymous union

[Python-Dev] PEP 7: Adding anonymous union / struct [Python-Dev] PEP 7: Adding anonymous union / structInada Naoki songofacandy at gmail.com
Wed Apr 17 07:47:29 EDT 2019
On Wed, Apr 17, 2019 at 8:27 PM Victor Stinner <vstinner at redhat.com> wrote:
>
> AIX is somehow supported and uses xlc compiler: does xlc support this
> C11 feature?

I find Language Reference for v11.1 (2010/4/13)
https://www-01.ibm.com/support/docview.wss?uid=swg27017991

I find "anonymous union" in p73.

I can not find language reference for versions older than v11.1.
And I can not find "anonymous struct" in v11.1 too.

Maybe, we should consider only anonymous union?


>
> Do you want to use it in Python 3.8 and newer only?
>

Yes.

In case of bpo-27987, Python 3.6 and 3.7 uses named union
for PyGC_Head.  So changing dummy from "double" to "long double"
is enough.

In case of Python 3.8, I removed dummy from PyGC_Head and
stop using named union because it is (implicitly) aligned by two
words (16byte on 64bit, 8byte on 32bit platform) already.

But we can align it more explicitly by using anonymous union,
without adding many `.gc.` again.

Regards,

-- 
Inada Naoki  <songofacandy at gmail.com>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4