[fpc-pascal] Feature announcement: default namespaces
ryan at thealchemistguild.com
Sun May 6 09:45:19 CEST 2018
> On May 6, 2018, at 2:40 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 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.
So I could use this feature if I used dotted file names like Utils.Foo.pas? I never thought of doing that before so this is al news to me.
More information about the fpc-pascal