groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [1/2] incubator-groovy git commit: added asType, isCase, call and rightShiftUnsigned to list of overloadable operators (closes #73)
Date Sat, 01 Aug 2015 10:07:58 GMT
Repository: incubator-groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X de82abbaf -> 877b96008


added asType, isCase, call and rightShiftUnsigned to list of overloadable operators (closes
#73)


Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/877b9600
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/877b9600
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/877b9600

Branch: refs/heads/GROOVY_2_4_X
Commit: 877b96008fafffe4a65d02e63250aaad9eb1a272
Parents: 0db9006
Author: Shil S <shil.sinha@gmail.com>
Authored: Sun Jul 26 15:43:23 2015 -0400
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Sat Aug 1 12:07:37 2015 +0200

----------------------------------------------------------------------
 src/spec/doc/core-operators.adoc | 34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/877b9600/src/spec/doc/core-operators.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 1531ad1..c8438a3 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -754,36 +754,46 @@ Here is a complete list of the operators and their corresponding methods:
 
 | `*`
 | a.multiply(b)
-| `<<`
-| a.leftShift(b)
+| `a in b`
+| b.isCase(a)
 
 | `/`
 | a.div(b)
-| `>>`
-| a.rightShift(b)
+| `<<`
+| a.leftShift(b)
 
 | `%`
 | a.mod(b)
-| `++`
-| a.next()
+| `>>`
+| a.rightShift(b)
 
 | `**`
 | a.power(b)
-| `--`
-| a.previous()
+| `>>>`
+| a.rightShiftUnsigned(b)
 
 | `\|`
 | a.or(b)
-| `+a`
-| a.positive()
+| `++`
+| a.next()
 
 | `&`
 | a.and(b)
-| `-a`
-| a.negative()
+| `--`
+| a.previous()
 
 | `^`
 | a.xor(b)
+| `+a`
+| a.positive()
+
+| `as`
+| a.asType(b)
+| `-a`
+| a.negative()
+
+| `a()`
+| a.call()
 | `~a`
 | a.bitwiseNegative()
 |====


Mime
View raw message