binary selectors ambiguity and space
tim at rowledge.org
Wed May 17 18:34:23 UTC 2006
On 17-May-06, at 9:36 AM, Duncan Mak wrote:
> I was thinking of using become: to implement something like this,
You can't do that. Smallintegers cannot be become:'d. Other numbers
shouldn't be. A number is a number - a manifest object that is what
it is. You *cannot* increment a number. There is nothing you can do
to '3' to make it anything but '3'.
I fear you're still stuck in the C rape-and-pillage mindset where you
get to plunder memory locations and have your wicked way with them
like some rampaging Assyrian horde-member. It just isn't how
Smalltalk works, so try to put that aside.
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Fractured Idiom:- RESPONDEZ S'IL VOUS PLAID - Honk if you're Scots
More information about the Squeak-dev