summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-11-14 02:40:55 +0100
committerAraq <rumpf_a@web.de>2014-11-14 02:40:55 +0100
commit9e00d3aec2da69c23cdb5dba0e3f654e99ded379 (patch)
tree34cf880141f79792ee30a8d1260e4293a80e5eb8
parent981b24f9167885fd878a53a2b057783d7964bbf5 (diff)
downloadNim-9e00d3aec2da69c23cdb5dba0e3f654e99ded379.tar.gz
fixes #693
-rw-r--r--doc/sets_fragment.txt1
-rw-r--r--lib/system.nim3
-rw-r--r--web/news.txt4
3 files changed, 3 insertions, 5 deletions
diff --git a/doc/sets_fragment.txt b/doc/sets_fragment.txt
index 32dbac1c2..59d434807 100644
--- a/doc/sets_fragment.txt
+++ b/doc/sets_fragment.txt
@@ -29,7 +29,6 @@ operation             meaning
 ``e in A``            set membership (A contains element e)
 ``e notin A``         A does not contain element e
 ``contains(A, e)``    A contains element e
-``A -+- B``           symmetric set difference (= (A - B) + (B - A))
 ``card(A)``           the cardinality of A (number of elements in A)
 ``incl(A, elem)``     same as ``A = A + {elem}``
 ``excl(A, elem)``     same as ``A = A - {elem}``
diff --git a/lib/system.nim b/lib/system.nim
index 7b78d1cf1..59a10f7e8 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -842,9 +842,6 @@ proc `+` *[T](x, y: set[T]): set[T] {.magic: "PlusSet", noSideEffect.}
   ## This operator computes the union of two sets.
 proc `-` *[T](x, y: set[T]): set[T] {.magic: "MinusSet", noSideEffect.}
   ## This operator computes the difference of two sets.
-proc `-+-` *[T](x, y: set[T]): set[T] {.magic: "SymDiffSet", noSideEffect.}
-  ## computes the symmetric set difference. This is the same as
-  ## ``(A - B) + (B - A)``, but more efficient.
 
 proc contains*[T](x: set[T], y: T): bool {.magic: "InSet", noSideEffect.}
   ## One should overload this proc if one wants to overload the ``in`` operator.
diff --git a/web/news.txt b/web/news.txt
index 2a9c24231..7f2e3c1a8 100644
--- a/web/news.txt
+++ b/web/news.txt
@@ -3,7 +3,7 @@ News
 ====
 
 ..
-  2014-10-21 Version 0.10.0 released
+  2014-10-21 Version 0.10.2 released
   ==================================
 
   Changes affecting backwards compatibility
@@ -26,6 +26,8 @@ News
     fails to match.
   - The re module returns ``nil`` instead of ``""`` when an optional capture
     fails to match.
+  - The "symmetric set difference" operator (``-+-``) never worked and has been
+    removed.
 
   Language Additions
   ------------------