I finally tried by Delphi2005. I experienced some new features of IDE two days ago. It is not bad. It is a little slow, the key is that my laboratory is not good, only 256m, the dormitory is worse than 512M, It is too smooth to use, but the start speed is still not as fast as VS2005. Speaking of stability, more than D8, but still heard that Bug is more, I haven't found any serious bugs now, maybe it is not enough to go deep, but stability, still can let People are accepted, although there is no good stability as D7, but I think at least 90% of D7 stability. After all, it is not long to use .NET to develop compilers.
The new features of Delphi2005 will not be mentioned, and online is everywhere, such as: reconstruction is still quite good.
But: I really don't understand, together is Borland's own things, but do not support Delphi, even if it is supported or integrated into Delphi2005, there is still a lot of functions. The second point is what the UML map can directly generate a code directly. I use the direct generation of the code from the code, but I didn't get out of the picture to the code, but I didn't use ECO, I don't know if it is this reason, but Delphi2005 Don't say that you can get ECO, really don't understand what is going on. The last point is that the Borland compiler is relatively high, but the code editor is made compared with the VS2005, it has a relatively large distance, in the VS2005, I will automatically display all the eligible code prompts, including the key. The words can be, and the speed is extremely fast, it will come out, and I will press the Ctrl space in D2005, and I will use the code prompt for the first time. I have to wait for the hard disk to turn for a while. However, the prompts used by VS are directly out of the code. D is also based on grammar analysis. I suspect that I have to compile the front in advance, so it is more accurate, but the machine is not good. Can't, and if the previous code is wrong, it is often impossible to prompt. Speaking of the automatic indentation of the code, this borland is really more than, VS can automatically indent the 2 space or other formats will be automatically judged, but Delphi2005 is still not, it is really no way. The last thing is not satisfied is to play three directly in VS.
/// will automatically generate a comment template, but Delphi has not provided the corresponding function, which is not easy to comment. The words retired, Delphi for .NET did some syntax adjustments in order to adapt to some requirements of .NET, but the relevant books are very small, help also write, like this, even if the compiler is successful, no one knows how to write. NET's Delph program is also white, I really don't know when Delphi.Net's good book can come out. Since there is Delphi2005, you can't wait, as long as you continue to explore.
Today you will look at the help, learn Namespace
Namespace declares namespace in Delphi's engineering file, implied a Namespace, called engineering default namespace. Suppose the project file header is defined as follows:
Program mycompany.programs.myprogram; (Library package, etc.)
Then the default namespace of the project is mycompany.programs
If a Unit head is defined as unit ****; it is equivalent to writing into unit mycompany.programs. **** If a Unit head is defined as unit ***. ****. ***; equivalent Declare a namespace ***. ****
Unit declared according to the first way is referred to as Generic Unit, which is always the subspace of the project default namespace
Name spatial naming is not case sensitive. That is to say, in several words, the last part is not calculated that the name is not compiled into assembly, such as Unit Aaa.bb.Unit3, only declares a namespace AAA.BB, Unit3 It can be seen as a distinction between different file names, can't be seen for the outside world, of course, in Delphi, or to divide them into two different parts. With this feature, if a large Namespace needs to be divided into several files, you can make all the comprehensive parts of these Unit, only in the last one. This section is different, it will be.
Quote for namespace uses the USES statement. It is assumed that there is a statement: Uses aaa.bbb.Unit1, unit2; for aaa.bbb.unit1, it has been clearly indicated, and for the Unit2 compiler, follow the three order below Unit 21 The Current Unit Namespace (if any) 2 THE Project Default Namespace (if any) 3 Namespaces Specified by Compiler Options Although the last section of the Unit name is not distinguished, but in Delphi, the last section is still indispensable. So in the USES statement, you need to include the last section, for example, Class1 is defined in Unit1 AAA.BB.Unit1, and you must use Class1 in Unit Aaa.bb.Unit2, you must need to reference the full names aaa.bb in Usees. Unit1 or if the default namespace of the project is AAA.BB, you can also directly Uses Unit1, no matter what, UNIT1 is essential. Wrote in Delphi's help: Multiple units can be grouped together into one namespace using an extension of the in clause in the project source file The file name string can list multiple unit source files in a semicolon-delimited list uses..
MyProgram.Mynamespace in 'filepath / unit1.pas; otherpath / unit2.pas';