This fixes the method comment for Dictionary>>valuesDo: which appears to have been incorrectly cut-n-pasted.
Comment was: Evaluate aBlock for each of the receiver's keys. Changed to: Evaluate aBlock for each of the receiver's values.
Dave
Suppose we want to test whether a number is an integer. #isInteger tests the *form* of the number, so
2 asFraction isInteger
is false.
2 asFraction reduced isInteger
is true.
Fine. The latter looks like our test.
However,
2.0 asFraction reduced isInteger
brings up the debugger. The reason is that
2.0 asFraction isInteger
is true. It should be false, right?
(OTOH, if it should be true, then shouldn't Integer>>asFraction return the receiver?)
Thanks,
Bill
[approved] comment only change, no code. (Date Posted: 19 February 2003 .... 8 Months for such a "fix").
< I'm a bug-fixing machine! >
This post brought to you by the BugFixArchiveViewer, a handy tool that makes it easy to comment on proposed fixes and enhancements for Squeak. For more information, check out the Web page for the BugFixArchiveViewer project: http://minnow.cc.gatech.edu/squeak/3214
< I'm a bug-fixing machine! >
squeak-dev@lists.squeakfoundation.org