[fpc-devel] fpdoc / methods/properties in inherited

Martin lazarus at mfriebe.de
Sun Nov 15 20:33:41 CET 2009


Another question

Asume the following

type
  TListBase = class
  protected
    Procedure SetFoo(AValue: TFoo) ; virtual; abstract;
    Function GetFoo: TFoo ; virtual; abstract;
  public
    property Foo read GetFoo write SetFoo;
  end;

  TListSpecific = class(TListBase)
  protected
    Procedure SetFoo(AValue: TFoo) ; override;
    Function GetFoo: TFoo ; override;
  end;

In TListSpecific the property Foo may have additional behaviour (and it 
may differ from other subclassses. However, I found no way, to document 
the property in the inherited class, differently from the base class. Of 
course no one can ever reach this by pressing F1 in the source, because 
there is no property declaration on whcih click F1.

But it could be referred to, by other classes:

  TOther = Class
  public
     property List: TlistSpecific;
     property ListFoo: TFoo;
  end

Now in the documentation of TOther.ListFoo there may be a reason to 
link/seealso to TListSpecific.Foo.








More information about the fpc-devel mailing list