[fpc-devel] Defenition of destructor behind property

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Jun 10 08:07:29 CEST 2011


On Fri, 10 Jun 2011 02:45:47 +0200
Hans-Peter Diettrich <DrDiettrich1 at aol.com> wrote:

> Joost van der Sluis schrieb:
> 
> > This construct is accepted by the compiler:
> > 
> >   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?
>[...]
> > (The Lazarus codetools choke on it)
> 
> This is what I'd consider a bug, in the codetools.

Again: It works here.

Mattias



More information about the fpc-devel mailing list