[fpc-devel] property syntax extension

Micha Nelissen micha at neli.hopto.org
Thu Oct 18 19:42:45 CEST 2007


Inoussa OUEDRAOGO wrote:
> so the sample code becomes ( using Delphi's attribute syntax )
> 
> TxxxDatabase = class(...)
> ...
> [Engines(List='firebird,oracle,sybase-asa')]
> property TransactionModel: TTransactionModel read FtransactionModel
>                                             write SetTransactionModel;
> ...
> end;

That doesn't look like language syntax to me, more like a comment?

Isn't

property TransactionModel: TTransactionModel read FtransactionModel
  write SetTransactionModel attribute Engines: List =
    'firebird,oracle,sybase-asa';

much more logical ?

Micha



More information about the fpc-devel mailing list