[squeak-dev] Is it an ok pattern to store live objects in a classVariableNames: Variable?

gettimothy gettimothy at zoho.com
Mon Oct 25 19:49:28 UTC 2021


Namespaces := Dictionary new.

Namespaces

add: (-2) -> OrderedCollection new;

      add: (-1) -> OrderedCollection new;

      add: (0) -> OrderedCollection new;

      add: (1) -> OrderedCollection new;

      add: (2) -> OrderedCollection new;

      add: (3) -> OrderedCollection new;

      add: (4) -> OrderedCollection new;

      add: (5) -> OrderedCollection new;

      add: (6) -> OrderedCollection new;





Hi Folks,



I am going to be adding a lot of objects to the ordered collections in that dictionary.



Basically, this is a Class pointing to a large number of Objects.



Is that a good place to put them?



I need these things to persist in image after shut-down.





Thx in advance.



t
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211025/13349f34/attachment.html>


More information about the Squeak-dev mailing list