[fpc-devel] Re: FPC missed method visibility issue

Graeme Geldenhuys graemeg.lists at gmail.com
Wed Aug 27 09:39:05 CEST 2008


On Wed, Aug 27, 2008 at 9:28 AM, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
>
> Here is all the hints/messages relating to the tiMediators.pas unit.
> As you can see, no warnings or error messages regarding the method
> visibility issue.
>
> ----------[ all and hidden messages copied from Lazarus Message
> window] -------------------
> .....
> Compiling ./gui/tiMediators.pas
> /home/graemeg/programming/fpgui/extras/tiopf/gui/tiMediators.pas(255,44)
> Hint: Local variable "Ma" does not seem to be initialized
> /home/graemeg/programming/fpgui/extras/tiopf/gui/tiMediators.pas(255,41)
> Hint: Local variable "Mi" does not seem to be initialized
> tiMediators.pas(107,35) Hint: Parameter "Sender" not used
> /home/graemeg/programming/fpgui/extras/tiopf/gui/tiMediators.pas(107,52)
> Hint: Parameter "APosition" not used
> /home/graemeg/programming/fpgui/extras/tiopf/gui/tiMediators.pas(388,44)
> Hint: Local variable "Ma" does not seem to be initialized
> /home/graemeg/programming/fpgui/extras/tiopf/gui/tiMediators.pas(388,41)
> Hint: Local variable "Mi" does not seem to be initialized
> Compiling ./gui/tiListMediators.pas
> .....
> -----------------------------


For completeness, I duplicated the issues again under Delphi 7 so I
could post the exact compiler message produced by Delphi.

------------------[ Delphi 7 messages ]------------------
Build

  [Hint] tiMediators.pas(53): Overriding virtual method
'TMediatorCheckBoxView.GetGUIControl' has lower visibility (private)
than base class 'TMediatorView' (protected)

  [Hint] tiMediators.pas(54): Overriding virtual method
'TMediatorCheckBoxView.SetGUIControl' has lower visibility (private)
than base class 'TMediatorView' (protected)


------------------------------------------------


Regards,
 - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the fpc-devel mailing list