[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: Re: [cfe-dev] [PROPOSAL] Reintroduce guards for Intel intrinsic headers
From: James Dennett <james.dennett () gmail ! com>
Date: 2015-07-30 18:34:00
Message-ID: CAKNGpgqC3nXssyNQRcKcqoCiu97nRzfBm1HofvZprGFQakCP1g () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Thu, Jul 30, 2015 at 11:04 AM, Reid Kleckner <rnk@google.com> wrote:
> On Thu, Jul 30, 2015 at 10:33 AM, Eric Christopher <echristo@gmail.com>
> wrote:
>>
>> What kind of file is this? Keep in mind that things in the global
>> namespace prefixed with an underscore is a reserved name for implementers
>> as well. That would make this code not standards compliant as well.
>>
>
> The actual C++ rules are that any name with double underscores is
> reserved, and names beginning with an underscore followed by a capital
> letter.
>
Also, any name starting with an underscore _in the global namespace_.
[global.names]/2, "Each name that begins with an underscore is reserved to
the implementation for use as a name in the global namespace."
> So, the Intel intrinsics are *not* in the implementer's namespace, but
> that was probably a mistake.
>
Given [global.names]/2, they are in the implementer's namespace (presumably
as intended).
-- James
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jul 30, 2015 \
at 11:04 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" \
target="_blank">rnk@google.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div \
class="gmail_quote"><span class="">On Thu, Jul 30, 2015 at 10:33 AM, Eric Christopher \
<span dir="ltr"><<a href="mailto:echristo@gmail.com" \
target="_blank">echristo@gmail.com</a>></span> wrote:<blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>What kind of \
file is this? Keep in mind that things in the global namespace prefixed with an \
underscore is a reserved name for implementers as well. That would make this code not \
standards compliant as \
well.</div></div></div></blockquote><div><br></div></span><div>The actual C++ rules \
are that any name with double underscores is reserved, and names beginning with an \
underscore followed by a capital letter. \
</div></div></div></div></blockquote><div><br></div><div>Also, any name starting with \
an underscore _in the global namespace_. [global.names]/2, "Each name that \
begins with an underscore is reserved to the implementation for use as a name in the \
global namespace."</div><div> </div><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>So, the Intel \
intrinsics are *not* in the implementer's namespace, but that was probably a \
mistake.</div></div></div></div></blockquote><div><br></div><div>Given \
[global.names]/2, they are in the implementer's namespace (presumably as \
intended).</div><div><br></div><div>-- James</div><div><br></div></div></div></div>
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic