|Operator overloading spec document email@example.com (2002-05-08)|
|Re: Operator overloading spec document firstname.lastname@example.org (2002-05-12)|
|Re: Operator overloading spec document email@example.com (Sebastian Moleski) (2002-05-12)|
|Re: Operator overloading spec document firstname.lastname@example.org (Christian DELBE) (2002-05-23)|
|Date:||12 May 2002 00:03:21 -0400|
|Posted-Date:||12 May 2002 00:03:21 EDT|
On Wed, 8 May 2002 04:12:43 UTC, email@example.com (Kirk Abbott) wrote: WEEKDAY
>I am trying to implement operator overloading in a Java extension. I
>am trying to find any document with formal details on operator
>overloading. In particular issues such as type resolution, what would
>be the equivalent non-operator-overloaded code that is generated
Since you are in Java and there are no free standing procedures all
you need to do is convert operators to internal method names and apply
if + corresponds to _opPlus then A + B becomes A,_opPlus( B );
Then let the method resolution do its thing.
For errors convert the _opPlus back to + in the message.
Return to the
Search the comp.compilers archives again.