[fpc-pascal] Ideas for namespace implementation

2010-07-25 Thread Graeme Geldenhuys
Hi, As I stated in another thread, namespaces are not perfect, but they do work, and they do greatly reduce the chances for unitname or classname conflicts. Other languages and frameworks (Java, .NET, C++ etc) already showed this. How visible is the unit name conflict problem? Just think, how ma

[fpc-pascal] Re: Ideas for namespace implementation

2010-07-25 Thread Graeme Geldenhuys
On 25 July 2010 19:16, Michael Van Canneyt wrote: > > What unit name conflicts ? In 15 years that I work with Delphi and FPC, and > I have use many many packages, I encountered exactly 1 conflict: Then you are extremely lucky. I have experience stacks of unit name conflicts in my years of programm

Re: [fpc-pascal] Re: Ideas for namespace implementation

2010-07-25 Thread Michael Van Canneyt
On Sun, 25 Jul 2010, Graeme Geldenhuys wrote: On 25 July 2010 19:16, Michael Van Canneyt wrote: What unit name conflicts ? In 15 years that I work with Delphi and FPC, and I have use many many packages, I encountered exactly 1 conflict: Then you are extremely lucky. I have experience stack

Re: [fpc-pascal] Re: Ideas for namespace implementation

2010-07-25 Thread Graeme Geldenhuys
On 25 July 2010 23:30, Michael Van Canneyt wrote: > > The discussion is not about namespaces. Object Pascal HAS namespaces, > namely units. The discussion is about 'enhancing' the namespace to allow one > or more dots in the name. With the importance that the '.' is only needed when resolving a co