#DOCUMENTATION by exept
authorClaus Gittinger <cg@exept.de>
Mon, 26 Aug 2019 09:26:46 +0200
changeset 24618 1cb472ae5a65
parent 24617 c76a07d160a4
child 24619 37f1256b4281
#DOCUMENTATION by exept class: OrderedSet comment/format in: #addOrReplace:
OrderedSet.st
--- a/OrderedSet.st	Mon Aug 26 09:19:28 2019 +0200
+++ b/OrderedSet.st	Mon Aug 26 09:26:46 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2001 by eXept Software AG
               All Rights Reserved
@@ -238,6 +240,9 @@
      If it is already included, replace it by anObject.
      Return nil, if anObject was not present in the receiver, 
      otherwise the element that has been replaced.
+     Notice: this sounds like a useless operation, but because sets compare by equality, 
+             the old object may be replaced by another object when equeal, but not identical.
+             For example, a string by a symbol or a float by an integer...
 
      Also, remember in the order (i.e. add to the end)
      If anObject is already present in the set,