On Tue, Feb 11, 2014 at 1:05 AM, Namespace <[email protected]> wrote:static opCall(int i)(int j, int k) { return Foo(i+j,i+k); }auto bob = Foo!(1)(2,3); //Error:Welcome to my world ;) http://forum.dlang.org/thread/[email protected]Did you try using a templated constructor?
Like this?
this(int i)(int j, int k)
{
this.i = i + j;
this.j = i + k;
}
Same error.
