[fpc-devel] property syntax extension

Marc Weustink marc at dommelstein.net
Thu Oct 18 20:12:50 CEST 2007


Micha Nelissen wrote:
> 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?

exactly my idea, even more since [{ are pretty similar

otoh, it looks a bit like a pragma now

Marc



More information about the fpc-devel mailing list