Appreciation for variadic templates and a nicely written article in the D Articles collection

Jon Degenhardt jond at noreply.com
Fri Mar 12 03:57:57 UTC 2021


Hi everyone,

A note of appreciation. I changed a function to take a variable 
number of arguments. Immediately saw performance degradation in 
callers using it (in very tight loops). This seemed like a 
problem that would be right in D's wheelhouse. A couple of 
searches lead to a very nicely written article on Variadic 
Templates in the D Articles collection. Showed how 
straightforward this is in D. The resulting code was simple and 
performance was restored. Wonderful!

The article: 
https://dlang.org/articles/variadic-function-templates.html

Thanks all,

--Jon


More information about the Digitalmars-d mailing list