Operator overloading
Xan
xancorreu at gmail.com
Fri Apr 20 12:33:37 PDT 2012
> Yes, you're wright. So in.
>
> But what fails?
>
> I reveice these errors and I have no idea what fails!
>
Sorry, the errors are:
$ gdmd-4.6 algorisme.d
algorisme.d:35: Error: 'this' is only defined in non-static
member functions, not __funcliteral1
algorisme.d:35: Error: function
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int).opBinary.__funcliteral1
cannot access frame of function
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int).opBinary
algorisme.d:35: Error: function
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int).opBinary.__funcliteral1
cannot access frame of function
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int).opBinary
algorisme.d:35: Error: function
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int).opBinary.__funcliteral1
cannot access frame of function
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int).opBinary
algorisme.d:35: Error: constructor
algorisme.Algorisme!(int,int).Algorisme.this (string nom, uint
versio, int function(int) funcio) is not callable using argument
types (string,int,_error_ function(int t) nothrow @system)
algorisme.d:35: Error: cannot implicitly convert expression
(__funcliteral1) of type _error_ function(int t) nothrow @system
to int function(int)
algorisme.d:52: Error: template instance
algorisme.Algorisme!(int,int).Algorisme.opBinary!("*",int) error
instantiating
I update the gist: https://gist.github.com/2429005
More information about the Digitalmars-d-learn
mailing list