"static if" is awesome

Sean Kelly sean at f4.ca
Mon Feb 27 10:20:19 PST 2006


Don Clugston wrote:
>
> I'm tempted to report this line from
> http://www.digitalmars.com/d/overview.html
> as a documentation bug:
> ----------
> Templates
> 
> D templates offer a clean way to support generic programming while 
> offering the power of partial specialization.
> -------
> 
> I think that since D has "static if", partial template specialisation is 
> primarily for backwards compatibility with C++. It's a primitive, ugly 
> technology. <g>

Yup :-)  About the only time I use it any more is when I want to change 
the entire class implementation rather than just a few functions.


Sean



More information about the Digitalmars-d mailing list