Squeak Project instances and "namespace"

Ned Konz ned at bike-nomad.com
Wed May 21 14:28:07 UTC 2003


On Wednesday 21 May 2003 04:20 am, Stephan B. Wessels wrote:
> The interesting thing is you can take the old
> SqueakNews images, since they were built on Squeak 3.x, and launch
> them using today's Squeak 3.5 VM.  That works perfectly.  And the
> image that gets launched does some interesting "application"-styled
> things to your Squeak environment.  The halos are turned off.  You
> cannot Command-. (break) into the debugger.  It appears to be a
> completely controlled application.

If you load a SqueakNews project into your image without entering the 
project, you may be able to fix this.

> Then I realized what I really wanted was for my Squeak demo to have
> a Project morph that "launched" SqueakNews.  Not a static slide. 
> And then when the quit/or exit door was selected, the Project would
> just exit and take me back as a normal project does today.
>
> This led me to conclude that having the ability of an instance of
> Project have it's own namespace as an option, could be a great
> thing. I still want most of my Project instances to share the
> morphs, classes and other objects that exist in my image.  But I
> can see the benefit of possibly suspending my current environment
> while inside another project as an option.

It is possible to have project-specific settings, and to revert 
isolated changes when leaving a project.

> Is this a description of a difficult fantasy to accomplish?  I'm
> not sufficiently skilled in the low level stuff, at least in Squeak
> (Smalltalk/V I can discuss), to know what's involved here.

You don't need to do anything with the VM, I don't think.

However, OSProcess lets you fork a Squeak process or launch another 
Squeak, and get notified when it ends. That may be the easiest way to 
handle this.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list