Re: True Name Spaces, when?
- From: Hans-Peter Diettrich <DrDiettrich1@xxxxxxx>
- Date: Sat, 16 Feb 2008 04:13:31 +0100
Thomas Miller wrote:
I think it is time for true Named Spaces in Delphi. What I mean by "true" (before I get set upon), is I would like to be able to register two components of the same name at the same time.
Delphi has inherited true namespaces from Pascal, no need to add any further bloat. Every unit represents an namespace.
What might be desireable: an option that requires the qualification of every identifier, with its unit name. Supported by a tool that extends every unqualified identifier in the source code.
This would solve the problem of having components for a specific OS.
FPC solves platform dependencies in the search path, which is initialized to include the OS and machine specific directories. The equivalent units in these directories only must have the same names, that's all.
The namespace model of .NET, inherited from C++, is crap. It requires that the compiler looks into all assemblies and modules, which are mentioned somewhere in a project, in order to collect all the bits that contribute to every single namespace. Delphi instead has every namespace in a single unit, including the interface, which in C (hopefully) will be found in some (which?) header file, or in .NET in one or more (which?) assemblies.
DoDi
.
- Follow-Ups:
- Re: True Name Spaces, when?
- From: L
- Re: True Name Spaces, when?
- From: Alessandro Federici
- Re: True Name Spaces, when?
- References:
- True Name Spaces, when?
- From: Thomas Miller
- True Name Spaces, when?
- Prev by Date: True Name Spaces, when?
- Next by Date: Re: What can we call such a framework
- Previous by thread: True Name Spaces, when?
- Next by thread: Re: True Name Spaces, when?
- Index(es):
Relevant Pages
|