On 21 April 2012 18:45, Alex Rønne Petersen <xtzgzo...@gmail.com> wrote:

> On 21-04-2012 16:32, Jacob Carlborg wrote:
>
>> On 2012-04-20 16:47, Manu wrote:
>>
>>  Bummer. I still think there's room for a formal trait to do this.
>>> Complimentary to allMembers and getMember, but for a functions.
>>>
>>
>> The function currently just splits the string on ",". It would be
>> possible to add a more sophisticated algorithm to handle delegate and
>> function pointer parameters.
>>
>>
> 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.


Some traits would be nice; allArguments, getArgument.
This would allow enumeration of argument lists in the exact same way as
struct members.

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.

Reply via email to