[D1] type of type

%u e at ee.com
Thu Dec 23 14:22:18 PST 2010


Is it possible to give a function a class(type) as an argument such that the
function can call its constructor, without using templates.

void func(T t){
  new T();
}

Or, what is the type of a type? :)


More information about the Digitalmars-d-learn mailing list