--- a/MeasurementValue.st Tue May 26 08:30:35 2009 +0200
+++ b/MeasurementValue.st Tue May 26 08:30:39 2009 +0200
@@ -206,13 +206,16 @@
!
coerce:aNumber
+ "convert the argument aNumber into an instance of the receivers class and return it."
+
^ MeasurementValue value:aNumber minValue:aNumber maxValue:aNumber
-
!
generality
- "/ adding 1 has the subtle side effect of enforcing a call to cuerce:
- "/ for mixed type operaions (i.e. Int * MeasurementValue).
+ "return the generality value - see ArithmeticValue>>retry:coercing:"
+
+ "/ adding 1 to the values generality has the subtle side effect of enforcing
+ "/ a call to coerce: for mixed type operations (i.e. Int * MeasurementValue).
"/ try it.
^ value generality + 1
@@ -294,5 +297,5 @@
!MeasurementValue class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/MeasurementValue.st,v 1.8 2009-02-28 11:52:06 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/MeasurementValue.st,v 1.9 2009-05-26 06:30:39 cg Exp $'
! !