howto make a function get a types form compilte-time-parameters AND from the arguments ?
Uplink_Coder
someemail at someprovider.some
Thu Oct 31 02:46:12 PDT 2013
(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
More information about the Digitalmars-d-learn
mailing list