[fpc-devel] property syntax extension

Marco van de Voort marcov at stack.nl
Thu Oct 18 22:28:36 CEST 2007


> > property TransactionModel: TTransactionModel read FtransactionModel
> >   write SetTransactionModel attribute Engines: List =
> >     'firebird,oracle,sybase-asa';
> >
> > much more logical ?
> 
> As attributes is meant to be used with allmost any construct( class,
> field, property, method
> orprocedure parametters, method or procedure, module... ), I think it
> is a reasonable
> syntax;

It IMHO isn't, since it is prefixed, like C#, while Pascal (AND variants)
usually have directives and modifiers AFTER the keyword.

__cdecl int func(void)

vs 

function func:integer; cdecl;





More information about the fpc-devel mailing list