Re: True Name Spaces, when?
- From: "Alessandro Federici" <afederici@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 16 Feb 2008 16:58:02 -0500
"Hans-Peter Diettrich" <DrDiettrich1@xxxxxxx> wrote in message news:47b685c3@xxxxxxxxxxxxxxxxxxxxxxxxx
[..]
Delphi has inherited true namespaces from Pascal, no need to add any further bloat. Every unit represents an namespace.
A namespace does not tie to one physical file and allows you to create better partitioning than monstrous units like SysUtils or Classes.
Assuming you really have the need to contain all those classes and utility functions in only one namespace (which would be bad implementation and design these days, but let's say we want to do that), you would have the option to create 5 or 6 more manageable code files instead of a huge one.
A namespace is also not tied to an actual compiled file (BPLs in Delphi, assemblies in .NET): you can extend a namespace in additional compiled modules.
And last but not least, real namespaces don't have the circular reference problem Pascal compilers had since TP days and that also helps creating files that are more maintainable.
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.
And that would not be bloating? <G>
.
- Follow-Ups:
- Re: True Name Spaces, when?
- From: Jolyon Smith
- Re: True Name Spaces, when?
- From: L
- Re: True Name Spaces, when?
- From: Marc Rohloff [TeamB]
- Re: True Name Spaces, when?
- From: Marco van de Voort
- Re: True Name Spaces, when?
- References:
- True Name Spaces, when?
- From: Thomas Miller
- Re: True Name Spaces, when?
- From: Hans-Peter Diettrich
- True Name Spaces, when?
- Prev by Date: Cannot download Update 3 for C++ Builder 2007
- Next by Date: Re: True Name Spaces, when?
- Previous by thread: Re: True Name Spaces, when?
- Next by thread: Re: True Name Spaces, when?
- Index(es):
Relevant Pages
|