[fpc-devel] extending platform flag request

Павел Ишенин webpirat at mail.ru
Thu Sep 27 17:13:07 CEST 2007

Hello, FPC developers' list

I had discussion with Marc about how to mark some properties as 
widgetset specific (and show them in object inspector as specific for 
widgetset 'xxx'). As result of discussion we found easy solution - mark 
that properties with platform flag, but platform flag should be extended 
to support list of platforms.


TMenu = class(...)
  property Detachable: Boolean read ... write ... ; platform carbon qt; 
{ or it can be platform 'carbon,qt' or another easier way }

As result of such declaration RTTI for TMenu will have platform list 
array with values 'carbon' and 'qt'. If there was no array of platforms 
in declaration, then only platform flag will be set in  RTTI with empty 
array of platform list.

What fpc developers think? Is it hard to implement?

Best regards,
Paul Ishenin.

More information about the fpc-devel mailing list