[squeak-dev] Re: Unloading MC definitions from an Environment

Colin Putney colin at wiresong.com
Sat Dec 21 22:37:39 UTC 2013


On Sat, Dec 21, 2013 at 8:18 AM, Frank Shearar <frank.shearar at gmail.com>wrote:

>
> | env1 env2 |
> env1 := Environment withName: 'env1'.
> env2 := Environment withName: 'env2'.
>
> [myMcVersion load] on: EnvironmentRequest do: [:e | e resume: env1].
> [myMcVersion unload] on: EnvironmentRequest do: [:e | e resume: env2].
>
> Obviously, myMcVersion's definitions will remain in env1, while the
> second line will quietly fail. (Quietly, in the sense that the
> Transcript will tell you the removal was ignored.)
>
> Actually, that seems quite fine.


Yeah, sounds right to me too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20131221/66acf165/attachment.htm


More information about the Squeak-dev mailing list