0

Simple question but if it does then what is its equivalent verbal function name(that is substituted by +=)?

Edit: By "java-o-o" I mean the java-o-o (Java-operator-overloading) plugin (hack) for java.

Any insight will be helpful!

reubenjohn
  • 1,351
  • 1
  • 18
  • 43
  • possible duplicate of [java += operator](http://stackoverflow.com/questions/8710619/java-operator) – Santhosh Apr 17 '14 at 11:30
  • There is no operator which is equivalent to `+=` The compiler replaces `a += b;` with something like `a = a + b;` – Peter Lawrey Apr 17 '14 at 11:45
  • @sankrish I am referring to the [java-o-o](http://amelentev.github.io/java-oo/) (operator overloading plugin not Java Object Oriented) that uses a lambda expression hack to allow C++ like operator overloading in Java. – reubenjohn Apr 17 '14 at 11:50
  • 1
    @PeterLawrey I don't understand how it is relevant here since the plugin primarily uses lambda expressions that effectively substitute method names allowing programmers the use of pseudo operator overloading *If I used the right wording* – reubenjohn Apr 17 '14 at 11:52
  • @reubenjohn It wasn't clear to me that you were using a preprocessor addon. It is not one of the listed operators. I suggest you ask the developers via github whether this is supported or planned, if they don't know, no-one does. – Peter Lawrey Apr 17 '14 at 12:02
  • @PeterLawrey Apologies if my question wasn't informative enough – reubenjohn Apr 17 '14 at 12:04
  • @reubenjohn No problem, don't be surprised when people answer what they think the question was. sometimes they answer without reading carefully, so if you are doing something different you have to make it really obvious. – Peter Lawrey Apr 17 '14 at 12:27

0 Answers0