[fpc-devel] Defenition of destructor behind property

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 9 13:30:07 CEST 2011


 
 

 Joost van der Sluis <joost at cnoc.nl> hat am 9. Juni 2011 um 12:53 geschrieben:

 > Hi all,
 >
 > 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) 
It works here. 
 
 Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110609/32194b2b/attachment.html>


More information about the fpc-devel mailing list