<div class="gmail_quote">On 20 April 2012 17:19, Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com">doob@me.com</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">On 2012-04-20 14:07, Manu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is a secondary problem with my workaround though... I can't figure<br>
any way to *alias* a function argument, I can only get a typetuple of<br>
the arguments. Since I don't have _alias_es of the function args, I have<br>
no way to access their 'identifier'(/name), and that leads to a problem<br>
where I'm generating the public stub function, and I have nothing to<br>
name the args other than a0, a1, a2, etc...<br>
That is complete rubbish, and unusable to an end user by my measure;<br>
intellisense is useless if the pop-up argument list says a0,a1,a2. >_<<br>
</blockquote>
<br></div>
Don't know if it helps but you can get the name of the arguments of a function:<br>
<br>
<a href="https://github.com/jacob-carlborg/orange/blob/master/orange/util/Reflection.d#L29" target="_blank">https://github.com/jacob-<u></u>carlborg/orange/blob/master/<u></u>orange/util/Reflection.d#L29</a></blockquote>
<div><br></div><div>Amazing, that needs to go in std.traits pronto! :P</div><div>This should help with my hack in the mean time.</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">
I don't think that function handles delegate/function parameters.</blockquote><div><br></div><div>Bummer. I still think there's room for a formal trait to do this. Complimentary to allMembers and getMember, but for a functions.</div>
</div>