On 01/26/2012 10:19 PM, Manu wrote:

C# has generics. Not quite like D templates, more like C++, but still...

C# generics and C++/D templates are *very* different things. C# generics make code type check (and duplicate static variables), templates duplicate the whole code. C# does not have anything like templates.

Templates have the benefit that they are a lot more powerful, generics have the benefit that they can be type checked modularly and generic functions can be virtual.

Reply via email to