Infinity.st
changeset 7471 c5d4bd612d9f
parent 7470 eb20a44a37b1
child 7548 8619bcb53c06
--- a/Infinity.st	Wed Jul 02 11:46:27 2003 +0200
+++ b/Infinity.st	Wed Jul 02 11:52:56 2003 +0200
@@ -228,7 +228,10 @@
 !
 
 = aNumber
-    ^ aNumber == self
+    "return true, if the argument represents the same numeric value
+     as the receiver, false otherwise."
+
+    ^ aNumber = self
 ! !
 
 !Infinity methodsFor:'double dispatching'!
@@ -316,7 +319,7 @@
 !Infinity::NegativeInfinity methodsFor:'testing'!
 
 sign
-    "return the sign of the receiver"
+    "return the sign of the receiver (1)"
 
     ^ -1
 ! !
@@ -340,7 +343,7 @@
 !Infinity::PositiveInfinity methodsFor:'testing'!
 
 sign
-    "return the sign of the receiver"
+    "return the sign of the receiver (-1)"
 
     ^ 1
 ! !
@@ -348,7 +351,7 @@
 !Infinity class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Infinity.st,v 1.10 2003-07-02 09:46:20 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Infinity.st,v 1.11 2003-07-02 09:52:46 cg Exp $'
 ! !
 
 Infinity initialize!