[fpc-devel] Fwd: New Issue: Accessibility Declarations for FreePascal
Marco van de Voort
fpc at pascalprogramming.org
Wed Oct 21 11:17:10 CEST 2026
Op 19-10-2026 om 18:38 schreef Martin Frb via fpc-devel:
> Can someone comment on this?
>
> Do we have C-like distinction between access and visible?
>
> I would think not?
>
> If you can access it you can see it, and vice versa?
> I can't think of any other case (i.e. where an identifier would be
> hidden by something that you can't access like in the example below)
>
> We do have the reverse, that a public property/function can expose a
> private type (but not the name of the type, just its "content"
> (enum/members))
>
You can't access those symbols with the unqualified name in Pascal
either, but you can reach them with unitname prefixes or typecasting self.
More information about the fpc-devel
mailing list