[fpc-devel] Interfaces documentation suggestion

Michael Van Canneyt michael at freepascal.org
Tue Aug 11 09:05:36 CEST 2009

On Mon, 10 Aug 2009, Graeme Geldenhuys wrote:

> Hi,
> Below is part of the Interfaces documentation. I disagree with the 
> documentation mentioned below.
> ================================
> Interfaces - section 7.1
> http://lazarus-ccr.sourceforge.net/fpcdoc/ref/refse34.html#x77-850007.1
> "There are no visibility specifiers. All members are public (indeed, it would 
> make little sense to make them private or protected)."
> ================================
> Maybe it is just Joanna Carter and myself that disagree with this statement. 
> But here goes... Joanna and I both agree that Interfaces when implemented in 
> classes should rather be made private or protected instead of public.

You are misinterpreting the statement. The statement is that IN THE
INTERFACE DECLARATION, all the members are public.

No assumption is made about the visibility of the methods in the class that
actually implements the interface.


More information about the fpc-devel mailing list