Skip to content
プロジェクト

PhilippeSigaud/D-templates-tutorial

GitHubで見る

概要

A tutorial on the D programming language templates.

学習・教育

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

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:

  • 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, 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.

関連プロジェクトを探す

読み込み中…