Unloading MC packages cleanly (was Re: [squeak-dev] The Inbox: System-fbs.523.mcz)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unloading MC packages cleanly (was Re: [squeak-dev] The Inbox: System-fbs.523.mcz)

Frank Shearar-3
>> On 13 April 2013 19:27, Bert Freudenberg <[hidden email]> wrote:
>
> For (a), possibly MCPackage>>unload needs to do something extra, or your #unloadPackages: would need to do something extra per package. E.g. unloading a package should remove that package's categories, both for classes and extension methods. If it doesn't, that needs to be fixed.

It looks, from a casual test, that "unload package" in a
MCWorkingCopyBrowser does _not_ remove empty: I made a category Foo,
addad to it a class Foo, went to a different package and added a *Foo
category to some random class and added a method. After unloading, the
method's gone but the *Foo category remains.

frank

> - Bert -
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unloading MC packages cleanly (was Re: [squeak-dev] The Inbox: System-fbs.523.mcz)

Bert Freudenberg

On 13.04.2013, at 14:21, Frank Shearar <[hidden email]> wrote:

>>> On 13 April 2013 19:27, Bert Freudenberg <[hidden email]> wrote:
>>
>> For (a), possibly MCPackage>>unload needs to do something extra, or your #unloadPackages: would need to do something extra per package. E.g. unloading a package should remove that package's categories, both for classes and extension methods. If it doesn't, that needs to be fixed.
>
> It looks, from a casual test, that "unload package" in a
> MCWorkingCopyBrowser does _not_ remove empty: I made a category Foo,
> addad to it a class Foo, went to a different package and added a *Foo
> category to some random class and added a method. After unloading, the
> method's gone but the *Foo category remains.
>
> frank


Yep. I always found that annoying ... MCCategoryDefinition is a weird beast IIRC.

- Bert -