Why can't I do (aNonSmallInteger becomeFoward: aSmallInteger)?

Scott A Crosby crosby at qwes.math.cmu.edu
Sun Mar 31 19:06:56 UTC 2002


On Sun, 31 Mar 2002, Tim Rowledge wrote:

> Because a SmallInteger is a manifest constant and the oop _is_ the
> value. #become: swaps the values refered to by the oop - if the oop is
> the value, it can't be swapped.

Yes, but he's talking about #becomeForward:, not #become:

So, there is a good question why it doesn't/can't work.

Scott





More information about the Squeak-dev mailing list