trait for (ddoc)-comments

David d at dav1d.de
Sun Aug 19 05:26:57 PDT 2012


I want to get the (ddoc)-comment of a certain function/member/struct … 
so I can generate help-messages at compiletime, without the need to 
duplicate the comments. Like pythons function.__doc__ or class.__doc__ 
etc. is there anything planed for D, e.g. __traits(getComment, foo.bar)?

If not what do you think of it, I would love this addition.


More information about the Digitalmars-d mailing list