[fpc-devel] Defenition of destructor behind property
Michel Catudal
michelcatudal at gmail.com
Sat Jun 11 14:33:39 CEST 2011
Le 2011-06-10 02:07, Mattias Gaertner a écrit :
> 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
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
--
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://home.comcast.net/~mcatudal
More information about the fpc-devel
mailing list