> On 6 Feb 2017, at 20:20, sergio ruiz <sergio....@gmail.com> wrote: > > Is it enough to create a collection on a class to persist data and keep it > away from the GC? > > something like: > > class Person>>people > ^ <an ordered collection of people> > > where add: and remove: would remove them from the collection..
You need to put the collection in a class variable (or in some global variable). > ---- > peace, > sergio > photographer, journalist, visionary > > Public Key: http://bit.ly/29z9fG0 > #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV > http://www.Village-Buzz.com > http://www.ThoseOptimizeGuys.com > http://www.coffee-black.com > http://www.painlessfrugality.com > http://www.twitter.com/sergio_101 > http://www.facebook.com/sergio101