Comparison chart of D and C++ templates

Walter Bright newshound at digitalmars.com
Fri Jan 19 17:44:06 PST 2007


Chris Nicholson-Sauls wrote:
> Out of curiousity, what is it in particular that makes overloading of 
> function templates difficult/complicated?  I have had occasions myself 
> where it would've been highly welcome.  (Especially in the context of 
> mixins, and especially as chains of more than three or four static-if 
> blocks can get mighty unwieldy.  I have a project with a /recurring/ 
> chain of about seven static-if's.  I'd be much happier with seven 
> implementor's/mixin's that are easier to maintain, and to add/remove.)

It's taking things with very different representations within the 
compiler and trying to make them the same.



More information about the Digitalmars-d-announce mailing list