[fpc-devel] Interfaces documentation suggestion

Michael Van Canneyt michael at freepascal.org
Tue Aug 11 09:20:21 CEST 2009



On Mon, 10 Aug 2009, Graeme Geldenhuys wrote:

> Sergei Gorelkin wrote:
>>> 
>>> "There are no visibility specifiers. All members are public (indeed, it 
>>> would make little sense to make them private or protected)."
>>> ================================
>>> 
>> This is about visibility of the methods/properties of the interface itself.
>> Do not confuse it with visibility of interface methods in implementor 
>> object, where usual visibility rules (described elsewhere) apply.
>
>
> True, but from the comment in brackets I deduced that it was a reference to 
> when they (Interfaces) get implemented. Either way, then maybe a comment 
> needs to be added that Interfaces having no visibility specifiers when the 
> interface is declared, does NOT mean they they must also be Public visible 
> when implemented in a class.
>
> I feel the wrong message is being sent in that documentation.

I will add a comment as you suggest. The documentation is meant to enlighten
the user, not confuse him :-)

Michael.



More information about the fpc-devel mailing list