Re: True Name Spaces, when?
- From: Yogi Yang 007 <yogiyang007@xxxxxxxxx>
- Date: Tue, 19 Feb 2008 11:24:41 +0530
I totally agree with you.
The binary compatibility across versions of Delphi is a must.
Robert Giesecke wrote:
Henrick Hellström wrote:.
Interesting idea, but would it work? Either the first or the second pass would have to perform the syntax check: Programmers don't magically avoid typos just because the compiler is two-pass. Problem is, when a unit interface section would be parsed the first time, the parser would have to assume any identifier it doesn't recognize will be resolved in time for the second pass. It couldn't tell typos from types declared elsewhere, which obviously would slow down the syntax check of large projects.
"Elsewhere" would still be within the used namespaces. Thus probably not all types in your project.
Also, the typo thing. forward declares to work as well, do they? And *everything* the compiler gets to do its work is the type name.
If the compiler would pickup all type names in the first sweep, forward declares were a thing of the past, together with circular references.
And what about the dcu format? A safe bet is that the time difference between a compile and a build
would be reduced significantly.
Again, I do not think that compile times would be increased by doing this kind of a simple two-pass.
OTOH, I don't like the need for compiler version-dependent DCUs as well.
Having something like .Net's assemblies could be added as well. By that I mean libraries that contain all necessary meta data, so that you can directly compile against them, without the need to have the DCUs as well.
And these libraries should be upward compatible. A newer Delphi should always be able to use the libraries of older ones.
And an older version should always be able to compile against those of a newer version of Delphi, as long as no new meta data things were used.
The current format of packages is a joke, IMO. Currently it is much easier to use DLLs and interfaces instead of the versioning hell that is BPL.
- 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
- Re: True Name Spaces, when?
- From: Robert Giesecke
- Re: True Name Spaces, when?
- From: Henrick Hellström
- Re: True Name Spaces, when?
- From: Robert Giesecke
- True Name Spaces, when?
- Prev by Date: Re: new computer: any reason not to go for 64 bits?
- Next by Date: Re: Delphi 2008 native?
- Previous by thread: Re: True Name Spaces, when?
- Next by thread: Re: True Name Spaces, when?
- Index(es):
Relevant Pages
|