DDoc and mixins
Kirk McDonald
kirklin.mcdonald at gmail.com
Sun May 6 18:23:49 PDT 2007
Gerald Stocker wrote:
> Hello,
>
> Is there any way to attach a documentation comment to declarations that
> are generated by mixins? Neither of the following work:
>
> /// Documentation for foo.
> mixin("int foo;");
>
> mixin("int foo; /// Documentation for foo.");
>
The doc-comment needs to come immediately /before/ the delcaration. Have
you tried:
mixin("/** Documentation for foo. */ int foo;");
> I am working on a 6502 emulator in D which relies heavily on CTFE +
> mixins to generate methods for each of the 6502's opcodes. The code is
> heavily commented with details of 6502 behavior, and I'd like to be able
> to include those comments in the generated ddoc documentation.
>
> --Gerald
--
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
More information about the Digitalmars-d
mailing list