>
> On Thu, Jul 9, 2015 at 2:58 PM, Michael Van Canneyt [email protected]
> wrote:
[...]
> We have support for dotted unit names. The only thing missing is a
> namespace directive.
Is there any plan for implementing the -NS[1] compiler parameter? This
option allows to use scoped unit names, that is very good for dotted unit
names, e.g:
MyCompany.SysUtils; // <scope>.<unitname>
...
uses
SysUtils; // this is an 'alias' for my 'MyCompany.SysUtils' unit ...
$ fpc -NSMyCompany (it could be enabled via Lazarus package too)
This option also enables the 'UseUnitScopeNames' directive, so you can use
a unit declaration like 'uses {$IFNDEF
UseUnitScopeNames}MyCompany.{$ENDIF}SysUtils'.
P.S.: you can pass two or more scopes via this options, e.g:
-NSMyCompany;OtherCompany;SomeLib
[1] http://docwiki.embarcadero.com/RADStudio/XE8/en/Delphi_Compiler
--
Silvio Clécio
My public projects - github.com/silvioprog
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus