DDoc: possible to show inherited class members?

Kapps opantm2+spam at gmail.com
Fri Mar 8 23:06:18 PST 2013


On Saturday, 9 March 2013 at 02:08:15 UTC, Steven Schveighoffer 
wrote:
> On Fri, 08 Mar 2013 20:16:07 -0500, H. S. Teoh 
> <hsteoh at quickfur.ath.cx> wrote:
>
>> Is there a way for DDoc to generate documentation for 
>> inherited class
>> members in the documentation for a class?
>>
>> 	class A {
>> 		int x;
>> 	}
>> 	/// Derived class
>> 	class B : A {
>> 		/// Another value
>> 		int y;
>>
>> 		// ?? how to also show A.x in B's documentation?
>> 	}
>>
>>
>> T
>>
>
> As far as I can tell, vibe.d's doc generation tool is doing 
> this.
>
> http://vibed.org/temp/d-programming-language.org/phobos/std/stream/EndianStream.html
>
> -Steve

It would be nice if this was default, and possibly if there was 
an 'inherit' when overriding much like there is 'ditto' (or just 
default to base type documentation).


More information about the Digitalmars-d mailing list