Allen Bauer wrote:
> > So, you are implementing the compiler with C, aren't you? Shame on > > you! :-) > > It's been in C since Delphi 2. Prior to that it was all in assembler. > > > Why don't you use the best language in the world? ;-) > > That is the proverbial bootstrapping problem.
Really? I rather guess back in 199x it has been a strategic decision (in order to reuse parts for C++) or just due historical reasons (because there were already C++ compilers for Win32 and the compiler could be native from start).
I think you could have started to write the 9.0 Win32 compiler with the 7.0 or 8.0 16-bit compiler and when the RTL was done and it was able to compile itself it just had compiled itself.
Now the reason is either that you don't rewrite it 100% from scratch or the usage of the backend for C++.
I don't have a problem with the fact that the compiler is written in C/C++, but a Delphi compiler not written in Delphi is an argument related to trust in Delphi/keeping the faith. A Delphi compiler written in Delphi is not necessarily the better Delphi compiler, because the compiler is written by humans and not by the language. -- Uwe