*Experts* Nerseus Posted October 13, 2003 *Experts* Posted October 13, 2003 I've been doing some work with C++ the last few weeks and I'm really liking the idea of templated code. For example, you can write a template for a function named "swap" and define what it does, then use that swap function for ANY class you want. At compile time, the compiler substitutes in the class-specific version of the function/code for each class type, optimizing things for you. Also, if you have a larger function than swap and need it for multiple class types, you don't have to rewrite it (only changing the class types). Any word if any new version of C# (whidbey or it's next version) have that support? I know it's probably not high on their list, but seems like an easy thing for a compiler to do (I can say that since I'm in the market of making compilers :)) -nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
*Gurus* divil Posted October 13, 2003 *Gurus* Posted October 13, 2003 C# and VB.NET will have generics in the next version. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* Nerseus Posted October 13, 2003 Author *Experts* Posted October 13, 2003 Ooo... sounds interesting :) Any link to a site that has more info (or info on what the next version of .NET might have in general)? :) (Two smilies for the price of none) -Nerseus Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
*Gurus* Derek Stone Posted October 13, 2003 *Gurus* Posted October 13, 2003 http://research.microsoft.com/projects/clrgen/ http://msdn.microsoft.com/msdnmag/issues/03/09/NET/ Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.