[Kde-java] Operator overloading

Richard Dale kde-java@kde.org
Mon, 11 Feb 2002 11:19:07 +0000


On Sunday 10 February 2002 5:09 pm, Emond Papegaaij wrote:
> Hi,
>
> I'm still working on QtJava, and I've discovered another problem. You can't
> multiply two QWMatrix objects. In C++ you would just multiply then (a*b),
> but this is not possible in java. Maybe it's a good idea to generate
> methods for this. Something like QWMatrix.mult(QWMatrix) or a static method
> QWMatrix.mult(QWMatrix, QWMatrix).
Yes, I'm adding code generation for operator methods to the kalyptus code 
generation. I'll try and fix QWMatrix, as far as I can see the '*' operator 
in QWMatrix means 'transform' rather than 'mult', and there is '*=' for 
multiply.

-- Richard