[fpc-pascal] How to have smaller units

Hairy Pixels genericptr at gmail.com
Sat Nov 29 14:31:33 CET 2025


 On Nov 29, 2025 at 6:43:44 PM, Guillermo Martínez Jiménez via fpc-pascal <
fpc-pascal at lists.freepascal.org> wrote:

> I have no idea about what are you doing but I'm pretty sure you can fix
> this by using a different design;  maybe to revise some patterns will
> help you to find the way to do it more properly.
>

He has a fair point. Imagine you have two classes and they want to write to
their fields but this only happens internally in your library while the
users of the library should never do this. How do you solve it? You
basically want a write property but just internally in your library.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20251129/f63f4917/attachment.htm>


More information about the fpc-pascal mailing list