Discussion on avoiding security vulnerabilities in C++

Sean Kelly sean at f4.ca
Fri Jul 13 17:20:03 PDT 2007


Walter Bright wrote:
> 
> It's like I attended a presentation by Scott Meyers which was an 
> application of C++ template metaprogramming. Most of the presentation 
> was about how to do arrays of types. With D, that's trivial (as tuples), 
> and the presentation would have been over in 5 minutes.

I was trying to figure out how to determine the return type of a member 
function using C++ template code the other day.  Something that would 
take me two seconds in D had me tearing my hair out in C++.  The result 
is that I simply don't do much serious metaprogramming in C++ because 
the machinations required are often just a complete mess.  In D however, 
it's so straightforward that in most cases a novice could understand it. 
  This is a huge win IMO.


Sean



More information about the Digitalmars-d mailing list