I'm back
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Tue Nov 13 03:50:26 PST 2012
On 11/12/2012 11:09 PM, bearophile wrote:
> In this thread
> http://forum.dlang.org/thread/50A0EEA4.7010706@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.
More information about the Digitalmars-d
mailing list