[fpc-pascal] Published -> Public
joshyfun at gmail.com
Fri Apr 16 00:06:37 CEST 2010
Thursday, April 15, 2010, 11:57:01 PM, you wrote:
>> procedure MyProcedure; virtual;
>> And a derived one:
>> procedure MyProcedure; override;
>> Is there any difference in the derived one with less visibility in the
>> method ? This means, does it use less/more memory, more/less calling
>> speed, more/less RTTI information, ... ?
MW> no, no, no, no
MW> You cannot lower visibility, since the following example is still possible:
MW> a := TMyClassDerived.Create;
MW> it will use the scope of a and not the "redefined" scope in TMyClassDerived
That was exactly my suspect, but as RTTI was in the game, maybe some
I had found this "visibility lower" warnings all along the LCLfpgui
interface, so I think I will move them to the expected "published"
level as parent TWSxxx classes.
More information about the fpc-pascal