Function Generation in D: The Good, the Bad, the Ugly, and the Bolt

Posted on

Introduction A while ago, Andrei Alexandrescu started a thread in the D Programming Language forums, titled “Perfect forwarding”, about a challenge which came up during the July 2020 beerconf: Write an idiomatic template forward that takes an alias fun and defines (generates) one overload for each overload of fun. Several people proposed solutions. In the … Continue reading Function Generation in D: The Good, the Bad, the Ugly, and the Bolt

Read more...

Open Methods: From C++ to D

Posted on

I knew next to nothing about D. You see, I learned to program in Forth. Later I did some Lisp programming just for fun. To me, the idea of CTFE was natural right off the bat. So when Ali talked about static if and mixins, he definitely got my attention. In order to learn (and evaluate) D, I decided to reproduce parts of my C++ library yomm11.

Read more...