Comment #6 on issue 2130 by marianopeck: cleanUpForRelease and friends
should use new cleanUp protocol
http://code.google.com/p/pharo/issues/detail?id=2130Everything :)
Take a look to #cleanUpForRelease or #cleanUpForProduction
Most of the stuff there, should be moved to the common protocol #cleanUp
and #cleanUp developed by Keith and integrated also in Squeak.
So...once it is done, we can just implement in SmalltalkImage something
like:
SmalltalkImage >> cleanUp
self allClassesDo: [:each | each cleanUp]
and
SmalltalkImage >> cleanUp: flag
self allClassesDo: [:each | each cleanUp: flag]
And then, in #cleanUpForRelease or #cleanUpForProduction instead of
hardcoding all the cleanings, we just do "Smalltalk cleanUp".
at least, this is an idea.