On Tue, Feb 11, 2014 at 1:05 AM, Namespace <rswhi...@googlemail.com> 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/hdocnxglxmfpacnpm...@forum.dlang.orgDid 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.