D-templates-tutorial

所属分类:文章/文档
开发工具:HTML
文件大小:1215KB
下载次数:0
上传日期:2021-09-21 11:50:40
上 传 者sh-1993
说明:  关于D编程语言模板的教程。
(A tutorial on the D programming language templates.)

文件列表:
D-templates-tutorial.epub (139116, 2017-06-08)
D-templates-tutorial.html (542203, 2017-06-08)
D-templates-tutorial.md (313422, 2017-06-08)
D-templates-tutorial.pdf (812933, 2017-06-08)
TODO.md (2118, 2017-06-08)
typedef.pdf (5224, 2017-06-08)
utils (0, 2017-06-08)
utils\acceptingtuple.d (136, 2017-06-08)
utils\alist.d (1307, 2017-06-08)
utils\allarrays.d (187, 2017-06-08)
utils\allmembers.d (309, 2017-06-08)
utils\allmembersmodule.d (425, 2017-06-08)
utils\allmemberstemplate.d (126, 2017-06-08)
utils\allmemberstemplate2.d (212, 2017-06-08)
utils\annotation.d (1826, 2017-06-08)
utils\anonymous_error.d (147, 2017-06-08)
utils\anonymous_function1.d (184, 2017-06-08)
utils\anonymous_function2.d (491, 2017-06-08)
utils\anonymousclass.d (581, 2017-06-08)
utils\areallranges.d (367, 2017-06-08)
utils\baseelementtype.d (436, 2017-06-08)
utils\basicTree1.d (285, 2017-06-08)
utils\basicTree2.d (569, 2017-06-08)
utils\buildsortingcode.d (475, 2017-06-08)
utils\calltwice.d (211, 2017-06-08)
utils\canbeinstantiated.d (357, 2017-06-08)
utils\cclass.d (200, 2017-06-08)
utils\checkcompatibility.d (421, 2017-06-08)
utils\checkedinheritance.d (284, 2017-06-08)
utils\checkedwrite.d (373, 2017-06-08)
utils\classinvariant.d (224, 2017-06-08)
utils\classsyntax1.d (179, 2017-06-08)
utils\classsyntax2.d (216, 2017-06-08)
utils\classsyntax3.d (388, 2017-06-08)
utils\codesamples.d (4476, 2017-06-08)
utils\compare.d (549, 2017-06-08)
utils\constrained.d (557, 2017-06-08)
... ...

# D Template Tutorial ## What's it's about This project is about a wonderful part of the [D programming language](https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/www.dlang.org "D Website"): templates. It contains a markdown document on templates aiming to be a kind of tutorial. It's divided in 6 chapters: * `Introduction` is just, well, the introduction text, explaining the goal of this document and the formatting conventions used. * `Basics` is about templates syntax, basic building blocks (`static if`, eponymous trick) and function, struct and class templates. * `Some More Advanced Considerations` is about more advanced ideas, like constraints, tuples or operator overloading. * `Around Templates` deals with other metaprogramming constructs interacting with templates: traits, compile-time function evaluation (CTFE) and string mixins. * `Examples` presents some more detailed examples of what can be done with D templates. * The `Appendix` gives some explanation on the `is` expression and links on other templates resources. If you find any inexactitude, plain error or missing subject, don't hesitate to open an issue on github! ## Other formats The markdown syntax used for the doc is the extended version used by Pandoc (mainly for tables or code sections). Using markdown files and [Pandoc](https://github.com/PhilippeSigaud/D-templates-tutorial/blob/master/http://johnmacfarlane.net/pandoc/), I generate the HTML, pdf and epub versions. Feel free to comment on them also. ## Utils The `utils` folder contains a small D script to extract the hundreds of modules present in the text and test their compilation. You can also find there the extracted and tested modules.

近期下载者

相关文件


收藏者