www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - C++ source and D question

reply Ben Hinkle <bhinkle4 juno.com> writes:
in the "Spirit of C" article on the C++ Source
  http://www.artima.com/cppsource/spiritofc3.html 
there is a template for gcd(m,n) without types and an Editor's note that
"this is essentially how templates work in the D language". Walter, was
that note due to you? Can someone explain in more detail what it means?

-Ben
Jun 27 2004
parent "Walter" <newshound digitalmars.com> writes:
"Ben Hinkle" <bhinkle4 juno.com> wrote in message
news:cbo23j$28h6$1 digitaldaemon.com...
 in the "Spirit of C" article on the C++ Source
   http://www.artima.com/cppsource/spiritofc3.html
 there is a template for gcd(m,n) without types and an Editor's note that
 "this is essentially how templates work in the D language". Walter, was
 that note due to you?
No.
 Can someone explain in more detail what it means?
I think the comment is incorrect <g>.
Jun 27 2004