Message-Passing
Timon Gehr
timon.gehr at gmx.ch
Thu Jan 26 14:10:49 PST 2012
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.
More information about the Digitalmars-d
mailing list