[fpc-devel] Defenition of destructor behind property
Marco van de Voort
marcov at stack.nl
Sun Jun 12 01:05:20 CEST 2011
In our previous episode, Hans-Peter Diettrich said:
> > property Onderdelen: TXMLDocument read GetOnderdelen;
> > destructor Destroy; override;
> > end;
> > Note the 'destructor' behind the property definition. Isn't this a bug?
> Not really. The only strong (syntactical) order requirement exists for
> fields, which can occur only at the begin of a visibility section.
For ordinary fields maybe. Union (case... of) fields must be at the end.
IIRC this is currently broken in FPC.
More information about the fpc-devel