Ddoc/parser behavior question
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jan 7 10:35:32 PST 2016
On 01/07/2016 12:25 PM, Jack Stouffer wrote:
> On Thursday, 7 January 2016 at 02:14:50 UTC, Brian Schott wrote:
>> 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
>
> That looks intentional, and IMO is what makes sense. You have the global
> comment for the declaration and individual comments for each.
Could someone please contribute the appropriate bit/example in the docs?
Thx! -- Andrei
More information about the Digitalmars-d
mailing list