[lazarus] fpc 1.9: global property

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 26 12:37:59 EST 2003


On Fri, 26 Dec 2003 18:46:30 +0100 (CET)  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;

Thanks. That needs some more work ...


Mattias






More information about the Lazarus mailing list