[fpc-pascal] Namespaces Support

Marco van de Voort marcov at stack.nl
Sun Oct 27 14:59:50 CET 2013


In our previous episode, Marcos Douglas said:
> > Namespaces are only for pseudo hierarchical disambiguation of unit names in
> > Pascal.
> 
> Very true. I agree with everything.
> BUT, IMHO, the only problem is if you have two 3rd frameworks that use
> the same unit name. In that case I can not add 2 units with the same
> name in my project. So, only in that case, we could use 'namespaces'
> to 'rename' these units only for use in our projects without change
> the original source.

In theory yes, in practice no, since that would be incompatible with
anything below XE2+ (and most commercial component builders still support
D7).

As with any feature, there are people that already design it in after the
first beta, but it will be rare, very rare, in the wild.



More information about the fpc-pascal mailing list