PackageDescription: OnGarbageCollect


On Garbage Collect

Last published: May 21, 2011 by 'mlucas-smith'

Defines 0 Classes
Extends 2 Classes


This package adds a convenient way to perform an action right before an object gets garbage collected. It is possible to save the object from collection by creating a hard reference to it during the execution of the action.

Example usage:
Object new onGarbageCollect: [:theObject | Transcript cr; print: theObject identityHash]