opCall and template functions

Steve Teale steve.teale at britseyeview.com
Fri May 22 10:51:58 PDT 2009


Jarrett Billingsley Wrote:

> On Thu, May 21, 2009 at 10:01 AM, Steve Teale
> <steve.teale at britseyeview.com> wrote:
> > Is this error intentional
> > strange.d(10): Error: template strange.A.opCall(T) conflicts with function strange.A.opCall at strange.d(8)
> >
> > You can make it work with the template version of opCall with no args
> 
> I doubt it's intentional, but that's always been the workaround.  One
> of the things Walter said he wanted to do for D2 was to make it
> possible to overload templated and normal functions like this, but
> that sadly hasn't materialized yet.

Jarrett,

I can see just intuitively that it could be one of those difficult things to do, so I'll continue with the workaround, and live in hope. But I do appreciate the intention.

Steve




More information about the Digitalmars-d mailing list