I'd introduce the templates using code written in C++ and then list the
differences between C++ and D. After all, C++ and C++ TMP are widely
known. Even I have few books of them in my bookshelf and ps/pdf papers
discussing C++ TMP. There aren't any books or peer reviewed articles
about D's metaprogramming, right? Prioritizing D over C++ doesn't make
sense, the citations should emphasize notable relevant sources.
Someone in some third world country proved Goldbach's conjecture.
Proof is there and accepted by everyone that understand what/how he does
it.
What are you going to do as the all mighty objective wikipedia?
Are you going to wait till that guy get matured enough and write a book
about the meaning of life, before you label him as a human being?
Or maybe you want to talk about his proof after a thousand of failed
attempts?
It clearly seems that both C++ and D communities think they invented the
term CTFE. In C++ the functions are "meta-functions" (templates) [1], in
D
"ordinary" functions. But the same shit comes with a different name in
other languages. It's essentially the same concept of metaprogramming.
[1] http://www.amazon.com/Template-Metaprogramming-Concepts-Techniques-
Beyond/dp/0321227255
CTFE in essance meta-programming i agree, but comparing to others like
comparing a tree to a forest.
And no one here claimed D is the inventor of meta-programming.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/