<div class="gmail_quote">On 21 April 2012 18:45, Alex Rønne Petersen <span dir="ltr"><<a href="mailto:xtzgzorex@gmail.com">xtzgzorex@gmail.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="HOEnZb"><div class="h5">On 21-04-2012 16:32, Jacob Carlborg wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2012-04-20 16:47, Manu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Bummer. I still think there's room for a formal trait to do this.<br>
Complimentary to allMembers and getMember, but for a functions.<br>
</blockquote>
<br>
The function currently just splits the string on ",". It would be<br>
possible to add a more sophisticated algorithm to handle delegate and<br>
function pointer parameters.<br>
<br>
</blockquote>
<br></div></div>
It would basically mean having to parse D's full type syntax to be 100% correct, which is not cool. The compiler ought to help out here.</blockquote><div><br></div><div>Some traits would be nice; allArguments, getArgument.</div>
<div>This would allow enumeration of argument lists in the exact same way as struct members.</div><div><br></div><div>D has gone hard out with its compile time meta capabilites, but there's just a couple of small things missing from the complete introspection set.</div>
</div>