<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr">Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> schrieb am So., 6. Mai 2018, 09:16:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On May 6, 2018, at 1:46 PM, Mattias Gaertner <<a href="mailto:nc-gaertnma@netcologne.de" target="_blank" rel="noreferrer">nc-gaertnma@netcologne.de</a>> wrote:<br>
> <br>
> He meant:<br>
> If you use units with namespaces and you can't use the -FN option, then<br>
> it becomes cumbersome to write them. Then a unit directive would be<br>
> nice to have.<br>
<br>
But does FPC have actual namespaces besides prefixing unit names? What exactly are "units with namespaces”?<br></blockquote></div><div dir="auto"><br></div><div dir="auto">They are also named "dotted units" and as I wrote in y announcement mail Object Pascal doesn't have namespaces in the sense of languages like C#, C++ or Java that allow for deep hierarchies and such. </div><div dir="auto">The namespaces in Object Pascal are merely a convenience thing. E.g. Delphi prefixed many of the existing units (like SysUtils became System.SysUtils, Windows became WinApi.Windows and Forms became VCL.Forms (or so)). They did this so that FireMonkey units can share unit names with the VCL (e.g. FMX.Forms). But to keep backwards compatibility with old code Delphi projects have by default their default namespace list set to something like "System, WinApi, VCL" so that such code continues to compile. </div><div dir="auto"><br></div><div dir="auto">In FPC we currently don't use dotted unit names much, but maybe that will change in the future. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div>