Bert,
Thank you for bringing this message to my attention. I am on the
squeak-...@lists.squeakfoundation.org, but only read a few of its messages
since so few are about object orientation as Alan defined the term.
May be people have difficulties with class based languages because they are not
There I found a problem with asInteger:
According to the x3j20 ansi standard FloatasInteger and
DoubleasInteger should be equivalent to sending rounded. You can
download the final draft revision for free:
wiki.squeak.org/squeak/uploads/172/standard_v1_9-indexed.pdf.
I tried that in squeak 4.2:
bb bblochl at arcor.de writes:
There I found a problem with asInteger:
According to the x3j20 ansi standard FloatasInteger and
DoubleasInteger should be equivalent to sending rounded. You can
download the final draft revision for free:
Comments inline.
On Wed, Jun 22, 2011 at 3:05 AM, David Corking li...@dcorking.com wrote:
Erlis wrote:
Now I think I start understanding Jim statement, basically the statement
is:
Smalltalk (the language) adopted the classical way of OO instead the
prototype way, so I don't have all
Currently #asInteger truncates. There is a method in
Number#detentBy: detent atMultiplesOf: grid snap: snap
Map all values that are within detent/2 of any multiple of grid to that
multiple. Otherwise, if snap is true, return self, meaning that the values in
the dead zone will never be