collection * 0 is not commutative

stan at stan at
Mon Feb 1 07:08:11 UTC 1999

The method '*' of SmallInteger has a special shortcut if the
SmallInteger is 0. Thus a collection times zero yields a collection of
zeros, but 0 times a collection yields the number 0.

I think this is not the behavior we want?


More information about the Squeak-dev mailing list