Hi Werner, On 12 Apr 2011, at 23:47, Werner Kassens wrote:
> hi, > i have a testsuite that is a subclass of TestCase with this method: > > testStupid > |a| > a :=#(1). > self assert: a first isNumber . > a :=a at:1 put: nil. > > if i run the test once, it succeeds, but but when i run it a second time it > fails. this seems to be sligthly counterintuitive, or how do i have to > understand it? > > werner You are destructively modifying a constant, the literal array #(1), of which there is one instance attached to #testStupid'd compiled method. Sven
