[lazarus] fpc 1.9: global property

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Fri Dec 26 12:28:37 EST 2003




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;


Michael.






More information about the Lazarus mailing list