#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Sun, 01 Jul 2018 13:08:04 +0200
changeset 23167 3d8ef4a8970d
parent 23166 787731fd16e1
child 23169 012958580544
#REFACTORING by cg class: Complex moved to Number hierarchy class definition class: Complex class comment/format in: #documentation
Complex.st
--- a/Complex.st	Sun Jul 01 12:47:47 2018 +0200
+++ b/Complex.st	Sun Jul 01 13:08:04 2018 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  This is a Manchester Goodie.  It is distributed freely on condition
  that you observe these conditions in respect of the whole Goodie, and on
@@ -23,7 +21,7 @@
 
 "{ NameSpace: Smalltalk }"
 
-ArithmeticValue subclass:#Complex
+Number subclass:#Complex
 	instanceVariableNames:'real imaginary'
 	classVariableNames:'ComplexOne ComplexZero'
 	poolDictionaries:''
@@ -116,6 +114,10 @@
         methods from the Number class to the Complex class. 
         Awful solution. Now I begin to appreciate Self.
 
+    NOTE (from porter): 
+        moved to Number hierarchy.
+        Makes live of users much easier (isNumber, reading, etc)
+        
     [Author:]
         Kurt Hebel (hebel@uinova.cerl.uiuc.edu)
         minor changes and double dispatching code by cg.