alias template parameters - opCall caller! example breaks in Programming in D, page 530

Ali Çehreli acehreli at yahoo.com
Sun Aug 24 17:18:40 UTC 2025


On 8/23/25 7:58 AM, monkyyy wrote:

 >> https://dlang.org/book/templates_more.html#ix_More%20Templates.alias,
 >> %20template%20parameter
 >
 > why is that education material not showing the fundamental pattern of
 > `(alias F,T...)(T args)=>F(args)`?

The book was written before that pattern was added to the language.

Ali

P.S. I remember some discussion on how supporting that pattern would be 
consistent with other parts of the language. If I agreed, I might be 
motivated to add it to the book as well.



More information about the Digitalmars-d-learn mailing list