Re: [Newbies] Testing = and == in workspace

2012-01-08 Thread Bert Freudenberg
On 08.01.2012, at 00:48, Ben Coman wrote: For some naive reason I thought that the SmallIntegers would stop at 64k. No, SmallIntegers currently use the full 31 bit range: {SmallInteger maxVal hex. SmallInteger minVal hex} == #('16r3FFF' '-16r4000') Is it platform

Re: [Newbies] Testing = and == in workspace

2012-01-07 Thread Bert Freudenberg
Am 07.01.2012 um 07:04 schrieb Ben Coman b...@openinworld.com: I had thought that the two assignments of 'xxx' to (x) and (y) would result in different objects, but they turn out to be identical. It is like the compiler has noticed that they are equal and chosen to make them identical.

Re: [Newbies] Testing = and == in workspace

2012-01-07 Thread Ben Coman
Bert Freudenberg wrote: Am 07.01.2012 um 07:04 schrieb Ben Coman b...@openinworld.com: I had thought that the two assignments of 'xxx' to (x) and (y) would result in different objects, but they turn out to be identical. It is like the compiler has noticed that they are equal and

Re: [Newbies] Testing = and == in workspace

2012-01-07 Thread Ben Coman
Levente Uzonyi wrote: On Sat, 7 Jan 2012, Ben Coman wrote: Bert Freudenberg wrote: Am 07.01.2012 um 07:04 schrieb Ben Coman b...@openinworld.com: I had thought that the two assignments of 'xxx' to (x) and (y) would result in different objects, but they turn out to be identical. It is

RE: [Newbies] Testing = and == in workspace

2012-01-06 Thread Ron Teitelbaum
Hi Ben, Have a look at the method for yourself. Check out the method = on the instance side of String. It should be pretty obvious when you get to the actual string comparison. All the best, Ron Teitelbaum -Original Message- From: beginners-boun...@lists.squeakfoundation.org