Ddoc inheritance

Alex Rønne Petersen alex at lycus.org
Mon Jun 11 17:59:05 PDT 2012


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()
     {
     }

-- 
Alex Rønne Petersen
alex at lycus.org
http://lycus.org


More information about the Digitalmars-d-learn mailing list