Re: Ddoc inheritance

2012-06-11 Thread Alex Rønne Petersen
On 12-06-2012 08:29, Jacob Carlborg wrote: On 2012-06-12 04:20, Ary Manzana wrote: I believe no special comment is needed for this. If you override a method without commenting it it should retain the original comment. If you do comment it, it should take that new comment. Sounds like a good i

Re: Ddoc inheritance

2012-06-11 Thread Jacob Carlborg
On 2012-06-12 04:20, Ary Manzana wrote: I believe no special comment is needed for this. If you override a method without commenting it it should retain the original comment. If you do comment it, it should take that new comment. Sounds like a good idea. I wonder though, if a special comment i

Re: Ddoc inheritance

2012-06-11 Thread Ary Manzana
On 6/12/12 8:59 , 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

Re: Ddoc inheritance

2012-06-11 Thread Jonathan M Davis
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 documentati

Re: Ddoc inheritance

2012-06-11 Thread Andrej Mitrovic
On 6/12/12, Alex Rønne Petersen wrote: > Would be neat if you could do something like ditto: > > /// inherit > override void foo() > { > } Maybe we should have "// super ditto" :)

Ddoc inheritance

2012-06-11 Thread Alex Rønne Petersen
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.