Re: True Name Spaces, when?
- From: Robert Giesecke <spam@xxxxxxxxx>
- Date: Sun, 17 Feb 2008 08:14:49 +0100
Henrick Hellström wrote:
Marc Rohloff [TeamB] wrote:
The circular reference problem has nothing to do with namespaces.
Alef has demonstrated he is perfectly capable of speaking for himself, but I guess a point to be made is that in Delphi you can only have two class declarations contain references to each other if they both are declared in the same unit with the proper forward declarations. In C# you don't need forward declarations and can therefore put such classes in different units. (Which, of course, comes at the price of slower compilation.)
Yes, but Marc probably meant that the problem with circular references is more an artifact of single-pass compiling.
Andreas Hausladen once suggested an easy way to solve it by kinda explicitly doing a forward declare for types in other units.
OTOH, I do not think that the programmer should do the job of the compiler. Resolving types is its job, not mine.
Two passes are more than enough. The first quick one to fetch all types names in their units.
Then the normal pass but now with infos about all types.
Whoever brings arguments like comparing the compilation time with C++ has either absolutely no idea, or simply does not want change for the sake of not wanting to have any change...
This is 2008, not 1978. Single-pass compilation is so 30 years ago.
.
- Follow-Ups:
- Re: True Name Spaces, when?
- From: Marco van de Voort
- Re: True Name Spaces, when?
- From: Henrick Hellström
- Re: True Name Spaces, when?
- From: Hans-Peter Diettrich
- Re: True Name Spaces, when?
- References:
- True Name Spaces, when?
- From: Thomas Miller
- Re: True Name Spaces, when?
- From: Hans-Peter Diettrich
- Re: True Name Spaces, when?
- From: Alessandro Federici
- Re: True Name Spaces, when?
- From: Marc Rohloff [TeamB]
- Re: True Name Spaces, when?
- From: Henrick Hellström
- True Name Spaces, when?
- Prev by Date: Re: Provide an official wrapper for LibPNG
- Next by Date: Re: XPlatform Desktop App AGAIN: What about Delphi C#(withWinforms)+Mono?
- Previous by thread: Re: True Name Spaces, when?
- Next by thread: Re: True Name Spaces, when?
- Index(es):
Relevant Pages
|