[fpc-devel] Defenition of destructor behind property

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jun 9 13:18:41 CEST 2011


On 09 Jun 2011, at 12:53, Joost van der Sluis wrote:

>  Tdm = class(TDataModule)
>    IBConnection1: TIBConnection;
>    procedure DataModuleCreate(Sender: TObject);
>  private
>    function GetOnderdelen: TXMLDocument;
>  public
>    property Onderdelen: TXMLDocument read GetOnderdelen;
>    destructor Destroy; override;
>  end;
>
> Note the 'destructor' behind the property definition. Isn't this a  
> bug?

No.


Jonas



More information about the fpc-devel mailing list