[fpc-pascal] Feature announcement: default namespaces

Michael Van Canneyt michael at freepascal.org
Sat May 5 21:24:11 CEST 2018



On Sat, 5 May 2018, Sven Barth via fpc-pascal wrote:

> Hello together!
>
> I'm pleased to announce the implementation of a new feature: default 
> namespaces.

Great !! Nice job, Sven :)

> Enter default namespaces.
>
> The compiler is told about a default namespace using the new -FN<x> 
> parameter, whereby <x> is a valid Pascal identifier for a namespace 
> (e.g. "MyUnits" or "FCL.XML" or "FCL.Web.Base"). Like with all similar 
> -F parameters -FN only takes a single value, but can be specified 
> multiple times.

All looks logical to me. One question only:

Is there a reason you didn't implement a global directive:

{$NAMESPACE somens}

or is this still planned ?

Regardless of the answer: Congratulations on a nice job :)

Michael.



More information about the fpc-pascal mailing list