Ddoc/parser behavior question

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 6 18:14:50 PST 2016


Consider the following code:

/// doc1
int a, /// doc2
     b, /// doc3
     c; /// doc4

Ddoc's behavior is to generate this documentation:

int a;
     doc1
     doc2

int b;
     doc1
     doc3

int c;
     doc1
     doc4

This isn't really spelled out in the ddoc spec. Is this behavior 
intentional or just a coincidence?


More information about the Digitalmars-d mailing list