You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/08/01 12:07:58 UTC

[1/2] incubator-groovy git commit: added asType, isCase, call and rightShiftUnsigned to list of overloadable operators (closes #73)

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 <sh...@gmail.com>
Authored: Sun Jul 26 15:43:23 2015 -0400
Committer: pascalschumacher <pa...@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()
 |====


[2/2] incubator-groovy git commit: corrected range operator doco on necessary conditions for range creation

Posted by pa...@apache.org.
corrected range operator doco on necessary conditions for range creation


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 0db90069db7b27233f0a0c7c3281d38592f9af5f
Parents: de82abb
Author: Shil S <sh...@gmail.com>
Authored: Sun Jul 26 15:42:08 2015 -0400
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sat Aug 1 12:07:37 2015 +0200

----------------------------------------------------------------------
 src/spec/doc/core-operators.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/0db90069/src/spec/doc/core-operators.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index 0cd248b..1531ad1 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -532,7 +532,8 @@ include::{projectdir}/src/spec/test/OperatorsTest.groovy[tags=intrange,indent=0]
 <5> meaning that you can call the `size` method on it
 
 Ranges implementation is lightweight, meaning that only the lower and upper bounds are stored. You can create a range
-from any `Comparable` object. For example, you can create a range of characters this way:
+from any `Comparable` object that has `next()` and `previous()` methods to determine the next / previous item in the range.
+For example, you can create a range of characters this way:
 
 [source,groovy]
 ----