   TEMPLATES and C#
  Are there any?IF not how do they expect to implement classes parallel to those implemented by the STL   
  .Net uses a concept called generics.They're kinda like run-time templates (a vast oversimplification, but it'll do for a start)BTW on your other thread, you might want to check out the comeau compiler for export support   ;  If you're running around looking for languages with parametrization, you could also take a look at O'Caml [wink]   ;  The classes in the .NET framework similar to those you'd find in STL use generics, which are like templates but somewhat more limited.  If you search the MSDN help library for the word "generics" you'll find a ton of information on them.  You can use templates in C++/CLI I believe, but to the best of my knowledge the only way to instantiate them outside of the compilation unit is by reflection.   ;Quote:Original post by arithmaAre there any?IF not how do they expect to implement classes parallel to those implemented by the STLThey don't expect to since it's already been done.The fact that every object derives from a common baseclass also rather mitigates the need for templated containers.   ;Quote:Original post by TelastynThey don't expect to since it's already been done.The fact that every object derives from a common baseclass also rather mitigates the need for templated containers.They do and they have.  See the Systems.Collections.Generic namespace for a number of parameterized container classes akin to what you'll find in the STL.  Additionally, a number of optimization and programming niceties are possible with parameterized classes that aren't otherwise (eliminating the need for excessive type casting between Object and whatever you're actually using for one).   ;  C++ templates are also used to compensate for its lack of reflection capabilities. Because C# has reflection, you can do a lot of things with the runtime that C++ does with template hacks.   