<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Amir via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Fr., 28. Nov. 2025, 23:06:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
One of the main thing bothering me while developing projects in Pascal <br>
is that my units are getting huge in size! The main reason is that the <br>
nice property that the classes could access each other private members <br>
if they are defined in the same unit motivates/forces me to define a lot <br>
of classes in the same unit. Then, all the functions/procedures <br>
implementation must go into the same unit. I know I can use inc file but <br>
I do not like it! The other option is to use "Cracker" pattern, in <br>
Delphi, which is fine but seems like a hack!<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Then you simply have the wrong idea what a unit it. It is intended for code with high cohesion, so it doesn't matter if it gets large. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>