PhilippeSigaud/D-templates-tutorial
关于
A tutorial on the D programming language templates.
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文D Template Tutorial
What's it's about
This project is about a wonderful part of the D programming language: templates. It contains a markdown document on templates aiming to be a kind of tutorial.
It's divided in 6 chapters:
Introductionis just, well, the introduction text, explaining the goal of this document and the formatting conventions used.Basicsis about templates syntax, basic building blocks (static if, eponymous trick) and function, struct and class templates.Some More Advanced Considerationsis about more advanced ideas, like constraints, tuples or operator overloading.Around Templatesdeals with other metaprogramming constructs interacting with templates: traits, compile-time function evaluation (CTFE) and string mixins.Examplespresents some more detailed examples of what can be done with D templates.- The
Appendixgives some explanation on theisexpression 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, 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.
探索相关项目
加载中…