[fpc-devel] protected class section / documentation

Martin Frb lazarus at mfriebe.de
Thu Jan 8 13:40:39 CET 2026


On 08/01/2026 13:24, Michael Van Canneyt via fpc-devel wrote:
>
> On Thu, 8 Jan 2026, Martin Frb via fpc-devel wrote:
>
>>
>> Should the doc be clearer on this?
>>
>> - "to" in "to descendant types" from an English point of view says 
>> "the descendant themself" or "the code inside the descendant"
>
> Yes, because that is what is meant.
>
> What you observe is a corollary of the scoping rules as I explained 
> above. I'll add a remark.

And maybe take into account "module" vs "modules". I.e. while for 
"private" it always is just one single module, for "protected" the class 
(including its  bases) may be declared across several modules.

So that adds in the current text, to the misleading/omitting character 
of the doc.


More information about the fpc-devel mailing list