<html><body><div class="gmail_quote">
    <div dir="ltr" class="gmail_attr">On Nov 29, 2025 at 4:58:38 AM, Amir via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div>
    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" type="cite">
        <div>  In C++, the concept of header files vs c++ files is helpful. In <br>Golang, one could implement the functions for a class in several files, <br>as long as they are in the same directory (namespace).<br></div>
    </blockquote>
</div>
<div dir="ltr"><br></div><div dir="ltr">I see your point, if there is a "file private" restriction then that constrains you to one file by definition and now you must use includes to break code apart. Personally I don't like them either because they break Pascals unit design and I've long wanted a way to include a unit so it behaves like an include.</div><div dir="ltr"><br></div><div dir="ltr">Honestly though it's not an unsolvable problem it just means you need to make interface/implementation IFDEFs in the units and then join them together yourself. I think this pattern is widely used but it is hacking around a feature the compiler should have in my opinion.</div></body></html>