<div class="gmail_quote">On Tue, May 15, 2012 at 3:13 AM, John Maschmeyer <span dir="ltr"><<a href="mailto:jmaschme@gmail.com" target="_blank">jmaschme@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I implemented some new traits that seemed to have a lot of<br>
interest recently.<br>
<br>
I've implemented parameterNames, isPublic, isPrivate,<br>
isProtected, isPackge, isExport, and codeof traits.<br>
<br>
parameterNames lets you get access to the names of function<br>
parameters<br>
<br>
isPublic, isPrivate, etc let you query access modifiers<br>
<br>
codeof was discussed recently in<br>
<a href="http://forum.dlang.org/thread/huyqfcoosgzfneswnrur@forum.dlang.org" target="_blank">http://forum.dlang.org/thread/<u></u>huyqfcoosgzfneswnrur@forum.<u></u>dlang.org</a>.<br>
   It gives you access to the source code of functions, classes,<br>
etc.<br>
<br>
I'm pretty new to the dmd code, so could someone take a look at<br>
them?<br>
<br>
<a href="https://github.com/D-Programming-Language/dmd/pull/951" target="_blank">https://github.com/D-<u></u>Programming-Language/dmd/pull/<u></u>951</a><br>
<a href="https://github.com/D-Programming-Language/dmd/pull/952" target="_blank">https://github.com/D-<u></u>Programming-Language/dmd/pull/<u></u>952</a><br>
<a href="https://github.com/D-Programming-Language/dmd/pull/953" target="_blank">https://github.com/D-<u></u>Programming-Language/dmd/pull/<u></u>953</a><br>
</blockquote></div><br>This is exquisitely awesome! Thank you!<div>The only question that remains is: How about the fact, that __traits(getMember, Class, PrivateMember) doesn't compile?</div><div>With the new __traits(<span style>parameterNames, ...</span>) It's not an issue any more...</div>
<div><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>
</div>