[squeak-dev] The Inbox: Kernel-ael.700.mcz

Aran Lunzer aranlunzer at gmail.com
Thu Jul 12 16:44:18 UTC 2012


>> Deliver 'objects pointing to this value' collection as an Array, to avoid the indirection of an OrderedCollection.

> What's the benefit of this?

It just removes some hassle when you're trying to track down who is
pointing to an object (e.g., to understand why it isn't being GC'd).
With the change:

1. Each 'objects pointing...' query gives an inspector on a clean
Array of objects, rather than an OrderedCollection with its array,
firstIndex, lastIndex IVs

2. The mechanism for avoiding "chasing your own tail" (i.e., finding
references to the object that only exist because it's now being viewed
in the inspector; see objectReferencesToSelection) doesn't work if the
object is two levels down, as it is with an OrderedCollection.


Aran


More information about the Squeak-dev mailing list