"Conversion Guide: Translate the program from the hosted expansion C ++ to C ++CLI"

xiaoxiao2021-03-06  15

Finally, I was translated by Mr. Stan Lippman. From April last year, I got this article at the global MVP summit to now, almost a year. Although the Visual Studio 2005 at the time does not support some grammar, I am very interested in the new C / CLI language, and I discussed the issue of translation at the time. After I started to translate this article, the progress has been very slow - mainly is too much miscellaneous, and the language is difficult (try to avoid misunderstanding and words, as well as the choice of consideration of words). After completing the full text in January, I saw an article of Sun Hui (http://community.9cbs.net/expert/topicview1.asp?id=3834281), I feel that some of the contents mentioned in the appendix may be interested. So continuing to translate appendix the work, but fortunately now is spring holiday, more time, finally finished today. The translation is currently at http://blog.9cbs.net/jiangsheng/archive/2004/10/18/140450.aspx can be accessed, I hope the reader will correct.

Updated in June 2005: MSDN version of translation at http://www.microsoft.com/china/msdn/library/langtool/vcpp/transguide.mspx can be accessed.

During the translation process, I got the help of Zeng Yi to contact STAN Lippman, thank you here.

Article introduction:

C / CLI represents a dynamic programming paradigm extension in the ISO-C standard language. There are many significant weaknesses in the original language design (V1), we feel that in the revised language design (V2) has been corrected. . This article lists the features of the V1 version language and their correspondence in V2 versions (if such a corresponding presence, it is pointed out as the language characteristics of the V1 feature that does not exist. For interested readers, the appendix is ​​provided in the appendix. In addition, a source code level conversion tool (MSCFRONT) is being developed, and may provide people who want automated porting V1 code to new language design in the release of C / CLI. This article is divided into five chapters plus an appendix.

The first section discusses the main language keywords, especially the removal of the double downline and

Contextuality and

Segment keyword.

The second festival is on the change of the type of hosted data - especially hosting

Quote types and array types. It is also possible to find a detailed discussion of Deterministic Finalization. About changes in class members, such as attributes, index properties, and operators,

The focus of the third quarter.

Section II focused on the grammatical changes of hosting enumeration, internal and constraints. It also discusses many considerable semantic changes, such as implicit packing, hosted

CLI

Changes of enumeration, and

The support of the value class default constructor is removed.

The fifth section has a bit like hodgepodi - a famous wolf

Miscellaneous. You can find behavior and parameters for type conversion symbols, string constants in it.

Discussion of arrays.

转载请注明原文地址:https://www.9cbs.com/read-46289.html

New Post(0)