[Issue 1391] Implicit Instantiation: deducing 'int n' from the number of arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 3 14:44:15 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1391
------- Comment #1 from kirklin.mcdonald at gmail.com 2007-08-03 16:44 -------
You can do this by rewriting the template like this:
ReturnType!(dg_t) delegate(ParameterTypeTuple!(dg_t)[T.length .. $])
curry(dg_t, T...) (dg_t dg, T t) {
alias ParameterTypeTuple!(dg_t) U;
const uint n = T.length;
// ...
}
--
More information about the Digitalmars-d-bugs
mailing list