Ddoc inheritance
    Jonathan M Davis 
    jmdavisProg at gmx.com
       
    Mon Jun 11 18:25:14 PDT 2012
    
    
  
On Tuesday, June 12, 2012 02:59:05 Alex Rønne Petersen wrote:
> Hi,
> 
> Suppose I have:
> 
> abstract class A
> {
> /// My very long and helpful documentation.
> void foo();
> }
> 
> class B : A
> {
> override void foo()
> {
> }
> }
> 
> Is there any way I can instruct Ddoc to copy the documentation from
> A.foo to B.foo? Copying it over manually is a maintenance nightmare.
> 
> Would be neat if you could do something like ditto:
> 
> /// inherit
> override void foo()
> {
> }
I don't think that anything like that exists, but I expect that it wouldn't be 
all that hard to add. The trick, of course, is knowing/learning those sections 
of the compiler well enough to make the changes.
- Jonathan M Davis
    
    
More information about the Digitalmars-d-learn
mailing list