Partial classes & forward declarations

Manu turkeyman at gmail.com
Sat Apr 21 09:22:40 PDT 2012


On 21 April 2012 18:45, Alex Rønne Petersen <xtzgzorex at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120421/5565fe51/attachment-0001.html>


More information about the Digitalmars-d mailing list