[squeak-dev] [CI] Unloading a package programmatically?

David T. Lewis lewis at mail.msen.com
Fri Sep 9 12:00:34 UTC 2011

On Fri, Sep 09, 2011 at 01:36:07PM +0200, Levente Uzonyi wrote:
> On Fri, 9 Sep 2011, Casey Ransberger wrote:
> >Okay, so, here's what we're gonna do. Sort out how to unload it when 
> >there's
> >more people awake:)
> >
> >It's seriously like six or seven classes in one category. There *must* be a
> >way to do this using... Smalltalk.
> Yeah, by hand:
> (MCPackage named: 'HudsonBuildTools') unload.
> SystemOrganization removeEmptyCategories.
> MCFileBasedRepository flushAllCaches.

Sure, and all of the "reloadable" packages work this way. For examples
of this, see SmalltalkImage>>unloadAllKnownPackages.

A well-behaved package should always be loadable and unloadable in
this manner, so using this mechanism to unload HudsonBuildTools
is a good thing to do.


More information about the Squeak-dev mailing list