trait for (ddoc)-comments
bearophile
bearophileHUGS at lycos.com
Sun Aug 19 06:30:33 PDT 2012
David:
> 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.
I am sure there are MANY other possible applications for such a
trait. Compile-time doctests maybe are a bit too much (but they
are OK for compile-time functions!), but things like this become
possible:
http://pypi.python.org/pypi/docopt/0.1
Bye,
bearophile
More information about the Digitalmars-d
mailing list