Mariano Martinez Peck wrote:
Hi guys: I have this little (piece) of test:
| segment external internal root |
external := 'mariano'. internal := true -> external. root := false -> internal. internal := nil.
segment := ImageSegment new copyFromRoots: (Array with: root with: external) sizeHint: 5000 areUnique: true.
self assert: segment outPointers size = 2.
And that is green.
However, if I change 'mariano' to Object new, I have that segment outPointers size is 3 instead of 2.
I really don't understand why. Does someone see something ?
What outPointers do you expect to be present? With my limited understanding of ImageSegment theory I would expect there to be no outPointers in this example, because there are no references from objects in the ImageSegment to objects outside the ImageSegment, except for the well-known objects true and false. Regards, -Martin