j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
I also need to change "something" to handle my implementation of ScaledDecimal step or by parameters. The following snippet shows an example of the odd results currently produced:
| x | x := OrderedCollection new. (1/2) to: 5.5s2 by: 2.0 do: [ :n | x add: n]. ^x asArray "-> ((1/2) + 2.5 4.5 )"
The Interval elements should all be Float as the default conversion of Fraction operation Float is Float.
I'm not sure why you say they should all be Float. The starting value of the to:by:do: is the initial value. No operation is performed upon it, so there is no chance for it to be converted to some other Number class.
Is there some reason that nextValue should be set before checking for the error? Will I step on something if I swap it and check for the error before setting nextValue?
Nope; I just did so because it moved all the tests together.
-- tim
squeak-dev@lists.squeakfoundation.org