"Second" D language status, basic rules and related resources introduction

Source: Internet
Author: User

This is a sequence of this series of articles, mainly for the future learning to do the groundwork, the text is divided into three parts, the first part of the online some of the older information on some of the problems of corrections, of course, I can not read all the information, inevitably there will be omissions. The second part is the basic rules of D language, the third part is related resources

First, some of the online old information on the content of the inaccuracies in this point out that 1, d support for closures is not goodthe current version supports complete closures, so don't worry2, D does not support dynamic linkThe current version supports dynamic link technology, but the Windows platform needs to note that the runtime of D is based on DMC (a C compiler) runtime, which is incompatible with the binary format of the VC, so if you want to call the VC-generated DLL, Or for the VC generated DLL need another tool conversion, specific methods in the future article will be introduced, which is also I think the D language Windows version of a bad place, as to why use DMC, may be because the designer himself to DMC feelings bar, left hand is meat ah, But it does cause some inconvenience to the user, but it's not a big problem .3, D there are two different standard library Tango and Phobos, and the two are incompatible, Phobos too simpleTango is the D1 period Popular library, although there are D2 of the transplant version, but Phobos is currently the mainstream standard library, many new open source projects are based on Phobos, so you can rest assured that the Phobos,phobos library is more powerful than the original, And as newer versions become more and more powerful, it is predicted that tango will make concessions in the future as a complement to Phobos, rather than4, D does not support nested classessupported, and supported very well5, D no pretreatmentYes, but D has a replacement plan.6, D language third-party libraries are rareCurrent third-party open source librariesRelative to Previoushave beenA lot more, just checked the next GitHub, there are currently more than 6,000 projects, mainstream technical support is good, such as database, network, graphics and so on, and all C-language libraries can be used directlyThe latest information can be viewed in http://code.dlang.org, which containsAll projects submitted to the official open Source Library are all dub managed Guthub on all the D language projects can be accessed https://github.com/search?utf8=?&q=language%3Ad that direct search Language:d 7 , d no Good IDE supportIDE Support is now very good, I used to have:Visuald (a plugin for Visual studio, it is important to note that the free version of VS does not support plugins, preferably with Professional Edition)DDT (Eclipse plug-ins, using dub to manage projects, dub is a project building tool and a management tool for D open source projects, based on JSON configuration, which will be introduced later in this tool)KDevelop (the main IDE under KDE desktop, support D language, but not mentioned on the official website, also very useful)Code::Blocks (d language Support, but this tool for code hints have been not very strong, if you do not pay attention to this feature can be used)For more IDE support scenarios, refer to Http://wiki.dlang.org/IDEsFor more information on editor support, please visit http://wiki.dlang.org/Editors (most popular editor support)Note: I am currently using DDT, although I do not like eclipse, but there is no better choice under the Mac system8, D no big company support, no big company useFacebook is currently in use and is a company that supports the D language because the D language designer works there .9. Less Chinese informationThis is the situation, and relatively old, but I am contributing to this direction, not for the benefit, but from the heart really appreciate the D language, but also hope to meet some of the same fellow, Exchange10, if you on the D language on the Internet some of the contents of the content of the Welcome Message Exchange II, basic knowledge 1, D language Source code files must be UTF-8, UTF-16, UTF-32 encoding, and support BOM, support *nix #! interpreter command 2, D source file organization and file system compatibility , the source file is called the module, the directory containing the source files (relative paths to the compiler's working directory root) is called package 3, D's source code is case-sensitive 4, Learning D language is best to learn C language, because as a system programming language inevitably to interact with the C API, So d is best for people who are familiar with C and need to improve productivity. 5, in a future article I will assume that you will C language, and understand an object-oriented language three, the relevant resources 1, D language official website is http://dlang.org because of the use of the domestic blocked CDN, So maybe you need FQ, recommend to find a free VPN, I am using MxVPN2, D of the compiler have what, where can download toDMD (official compiler, the support of the D standard is the fastest, and integrated RDMD, can be used as a D language interpreter, if the use of other compilers this tool can also be downloaded separately, is a D language program)GDC (GNU version, suitable for Linux system, version updated immediately after DMD, but the general Linux distribution version will be older, it is best to download the latest version)LDC (LLVM version, currently I have not tried, do not know how to support the D language version, interested friends can try)no matter what system you use, usually DMD is a good choice, only in Linux installed when the library depends on relatively more, GDC and Linux compatibility is higher, after all, GCC is the linux default compiler, but for the compiled program depends on the same, No special instructions in post-order articles will use DMD as a compilerthe download of the compiler can be downloaded via this link:: http://dlang.org/download.html4, install the compiler can use the HelloWorld program test in the previous article, you can also use the official website or any example of the manual to test "D programming language" Chinese version of the e-book Baidu network disk: http://pan.baidu.com/s/1qB65w "D Language Chinese reference manual Baidu network disk: http://pan.baidu.com/s/1o684aL0, this manual is D 2.0.54 version, currently the latest version is 2.0.67, slightly older, but this is the only Chinese translation manual. Language and library changes please refer to the official website change Log Note: The above two Chinese materials are translated by Zhang Xieping, in this thank Zhang Xieping for the development of Chinese D language DDT eclipse update Site:http://ddt-ide.github.io  /releases/(need dub, do not know why dub is not recommended to use) only the installation of this plugin may encounter problems, so here directly to the address of the Eclipse update site, other Ides should not be a problem If you have read this article and have any doubts or encountered any problems welcome to leave me a message

"Second" D language status, basic rules and related resources introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.