[Lazarus] Published interface TWSxxxxxx
Marc Weustink
marc.weustink at cuperus.nl
Fri Apr 16 15:02:37 CEST 2010
José Mejuto wrote:
> Hello Lazarus-List,
>
> All objects in the widgetset interface TWSxxxxx has the "class
> procedure" under the published section like:
>
> TWSBitBtn = class(TWSButton)
> published
> class procedure SetGlyph(const ABitBtn:...........
> class procedure SetLayout(const ABitBtn:..........
> class procedure SetMargin(const ABitBtn:..........
> class procedure SetSpacing(const ABitBtn:.........
> end;
>
> Is there any reason to be published instead public ? Maybe to garantee
> that the functions will never be removed by fpc/linker if not directly
> used in the code ?
there is a "virtual" classtree build based on RTTI. RTTI is only
generated for published methods
Marc
More information about the Lazarus
mailing list