[lazarus] fpc 1.9: global property

Marc Weustink marc at dommelstein.net
Fri Dec 26 19:20:39 EST 2003


At 18:46 26-12-2003, Michael.VanCanneyt at Wisa.be wrote:


>On Fri, 26 Dec 2003, Mattias Gaertner wrote:
>
> > On Fri, 26 Dec 2003 17:28:24 +0100  Vincent Snijders <vslist at zonnet.nl>
> > wrote:
> >
> > > Hi,
> > >
> > > fpc 1.9 support global properties, see for example
> > > rtl/linux/baseunix.pp.
> > >
> > > The codetools don't support them and give an error:
> > > Error expected end., but property found.
> >
> > Interesting feature.
> > Where can I find the specs?
>
>They are the same as normal properties, only without class. Read/write
>specifiers can be in another unit, and properties can be grouped as in
>var/const/type/resourcestring blocks.
>
>So something like:
>
>Unit SomeProps;
>
>Uses
>   ReadWriteUnit;
>
>Property
>   A1 : Integer Read GetA1 Write SetA1;
>   A2 : Integer Read GetA2 Write SetA2;

Cool :-)

Marc







More information about the Lazarus mailing list