scottrick Wrote: > T[] rawRead(T)(T[] buffer); > > I understand that T is generic type, but I am not sure of the > meaning of the (T) after the method name.
That T is defining the symbol to represent the generic type. It can have more than one and D provides other things like aliases... Another way to write that function (I may get something wrong here but give it a shot) is: template(T) { T[] rawRead(T[] buffer); }