Hi,

I'm trying to reimplement something like this C++ code in D:

template<Class T>
Class A {
   ...
}

template<Class T>
A<T> some_function() {
   ...
}

While I can implement the class:

class A(X) {
   ...
}

I fail with the function, due to the fact that I don't know/find the correct
syntax for this. The version

A(X) some_function() {

}

fails with the message
function declaration without return type. (Note that constructors are always
named 'this')
which is understandable. Any idea how the correct syntax is?

Thanx, daniel

Reply via email to