(this is my first post so please alert me to any breaches of forum etiquette)

Hello,
I have a problem with a helper function I'm writeting.

T[] makeArray(T,U)(immutable U[] paramArray) {
        T[] result;
        foreach (param;paramArray) {
                result ~= T(param);
        }
        return result;
}

and I would like not to take the compile-time-parameter U but insead infering it form the argumet.

is it possible ?
and if. how ?

----

Uplink_Coder

Reply via email to