On Tue, Feb 7, 2017 at 4:07 AM, Sven Van Caekenberghe <[email protected]> wrote: > > > > On 6 Feb 2017, at 20:20, sergio ruiz <[email protected]> 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). > >
You may also find these interesting... http://onsmalltalk.com/simple-image-based-persistence-in-squeak/ http://smalltalkhub.com/#!/~TorstenBergmann/SimplePersistence cheers -ben
