<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 6, 2014 at 6:36 PM, Anton Bikineev <span dir="ltr"><<a href="mailto:ant.bikineev@gmail.com" target="_blank">ant.bikineev@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi all.<br>
<br>
I'm russian student from Moscow. I like C++ and<br>
I would like to contribute to Clang not as part<br>
of GSOC. I have already contributed to Boost.Math.<br>
<br>
I wanted to implement a static if declaration as<br>
an extension proposed by Herb Sutter, Andrei Alexandrescu<br>
and Walter Bright here<br>
<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3329.pdf" target="_blank">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3329.pdf</a></blockquote><div><br></div><div>FYI Stroustrup shot that feature down pretty hard <<a href="http://isocpp.org/blog/2013/03/n3613-static-if-considered">http://isocpp.org/blog/2013/03/n3613-static-if-considered</a>>. It may not be the best one to implement.</div>
<div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
This feature is used in D language.<br>
But I don't know how it is relevant in Clang. Also I have<br>
just found some problems. For example, I don't know<br>
how better to represent it in AST: either as Decl or as Stmt.<br>
If (static if) is Stmt, it is easier to implement many things<br>
just using similar functions for if-statement.<br>
<br>
Maybe somebody has better ideas. I will be glad to any advices.<br>
Sorry for my English.<br>
<br>
Best regards,<br>
Anton.<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>