This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fixing namespace issues for variables
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Thu, 22 Oct 2015 17:29:29 -0700 (PDT)
- Subject: Re: Fixing namespace issues for variables
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1510222324130 dot 23141 at digraph dot polyomino dot org dot uk>
It's some unpleasant contortion, but I can't think of anything else.
My main concern was about the issue of declaring without the header.
But if you can cite chapter and verse of the standards that says
it's OK (put this in code comments somewhere), then OK. However,
I'm still worried about effectively taking these identifiers out of
the usable name space for other kinds of identifiers (member names,
locals, etc.). Even if the standards permit it, it might break some
existing source code and it's certainly not a friendly thing to do
when we can avoid it. But as I said, I haven't thought of anything
else to do instead.