<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 8 January 2014 16:55, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><span style="color:rgb(34,34,34)">I agree that adding attributes is much easier; and I'm fine with taking this approach. I think that, in general, we should work on an infrastructure that lets the pragma parsing build off of the attribute handing. I don't see any real reason to have separate code paths for the two (in those cases where they are doing similar things).</span></div>
</blockquote><div><br></div><div>Agreed.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">In the long run we should, however, definitely support a pragma syntax. That is the proper, standard, way of providing these kinds of extensions in pre-C++11 languages.</span></div>
</blockquote><div><br></div><div>Agreed.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">I'll add that, as I understand it, one of the original design motivations for C++11 attributes was so that extensions like OpenMP could be specified in terms of C++ attributes instead of or in addition to pragmas. I don't think the OpenMP ARB has yet acted on this, but I expect that as C++11 support is specifically addressed in upcoming versions of the OpenMP specification, we might see movement in this direction.</span></div>
</blockquote><div></div></div><br></div><div class="gmail_extra">This is interesting. We can add the attributes in "beta" stage, and change to closer to whatever OMP comes up, just to make things easier to users. Since this attribute is going to be only used by a handful of people for now, mostly us and tests, I think it should be ok.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div></div>