A little thing about function templates

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Feb 12 06:00:59 PST 2007


"mike" <vertex at gmx.at> wrote in message news:op.tnmz53uonxkcto at zimmermoos...
------------------------------------

a function template is declared like

' void foo(T)(T xy) { ... }

and "called" like

' foo!(int)(3);

-------------------------------------

Go ahead and try calling that with "foo(3);" instead.  You will be 
pleasantly surprised.  It's something called IFTI. 





More information about the Digitalmars-d mailing list