On 11/12/2012 11:09 PM, bearophile wrote:
In this thread
http://forum.dlang.org/thread/50a0eea4.7010...@webdrake.net

Joseph Rushton Wakeling suggests code like this to compile:

struct Foo(_T) {
     alias _T T;
}
void bar(FooT)(FooT foo, FooT.T x) {
}
void main() {
     Foo!int foo;
     bar(foo, 1); // line 8
}

I'm not actually suggesting that the particular syntax above necessarily ought to work, but I'd like an easy way to ensure that one template parameter can be determined from another.

Reply via email to