changeset 21817 | 5d251e1af13a |
parent 21798 | eeac3e49a0af |
child 21873 | a2ed604af5c4 |
--- a/Complex.st Thu Jun 15 13:56:41 2017 +0200 +++ b/Complex.st Thu Jun 15 13:56:59 2017 +0200 @@ -161,6 +161,14 @@ "Modified (comment): / 12-06-2017 / 20:44:32 / cg" ! ! +!Complex class methodsFor:'coercing'! + +coerce: aNumber + "convert the argument aNumber into an instance of the receiver's class and return it." + + ^ aNumber asComplex +! ! + !Complex class methodsFor:'constants access'! unity