For some stuff I'm working on I'm looking at the class 'Environment' etc and wondering if anyone knows if it actually works (ever? still? with some extra fileins?). I wasn't able to spot anything about it on the Swiki and there appears to be no actual use of it within the 3.4 image. Before I spend too much time on it, I thought it would be useful to see if anyone else has made use of this class...
tim
Tim,
If you can say something about what you are hoping to achieve by using environments I might be able to give you a pointer or two (if it's too delicate just send it off-list). I've been all over it with Bill in order to get (secured) name spaces for Croquet running so I know some of it.
Cheers, - Andreas
-----Original Message----- From: squeak-dev-admin@lists.squeakfoundation.org [mailto:squeak-dev-admin@lists.squeakfoundation.org] On Behalf Of Tim Rowledge Sent: Friday, December 20, 2002 12:29 AM To: squeak Cc: Tim Rowledge Subject: Environment?
For some stuff I'm working on I'm looking at the class 'Environment' etc and wondering if anyone knows if it actually works (ever? still? with some extra fileins?). I wasn't able to spot anything about it on the Swiki and there appears to be no actual use of it within the 3.4 image. Before I spend too much time on it, I thought it would be useful to see if anyone else has made use of this class...
tim
tim@sumeru.stanford.edu
"Andreas Raab" andreas.raab@gmx.de is claimed by the authorities to have written:
Tim,
If you can say something about what you are hoping to achieve by using environments I might be able to give you a pointer or two (if it's too delicate just send it off-list). I've been all over it with Bill in order to get (secured) name spaces for Croquet running so I know some of it.
No big secret; I'm considering assorted approaches to assembling objects to turn into a minimal ( or any other kind of) image. One possibility is to build a parallel tree of classes with just what one wants, using all our normal tools etc, and then trace that tree out with the cloner. Of course, one needs a way to have a suitable 'Smalltalk' entry to provide the globals for this new image without messing up the working world. Environment looks like it might just possibly be a good place to start since it seems like it might be integrated into the compiler's view of the world thus saving my messing about with the compiler - always a nice thought.
Problems I foresee include :-
the bootstrap problem of getting as far as having a working Object/Metaclass/Behaviour/etc system that provides enough structure to let me create methods and classes. Probably involves some trick with getting that far and inserting the new globals world in just the right place at just the right time.
having the working world able to know about the new world but not vice versa (I think that is needed for the Compiler to build classes forthe new world).
making sure browsers can help me keep track of what is where.
not going nuts from trying to work out what is going on.
forgetting something crucial.
tim
Hello Tim,
I have used Environment for making my Classbox Model (a new approach for modularization). It works if you just want to store some class into a namespace.
A starting point could be: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= cls _ ClassBuilder new name: aName inEnvironment: anEnviroment subclassOf: superclass type: superclass typeOfClass instanceVariableNames: ivs classVariableNames: '' poolDictionaries: '' category: self name. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Cheers, Alexandre
On Thu, Dec 19, 2002 at 03:28:34PM -0800, Tim Rowledge wrote:
For some stuff I'm working on I'm looking at the class 'Environment' etc and wondering if anyone knows if it actually works (ever? still? with some extra fileins?). I wasn't able to spot anything about it on the Swiki and there appears to be no actual use of it within the 3.4 image. Before I spend too much time on it, I thought it would be useful to see if anyone else has made use of this class...
tim
tim@sumeru.stanford.edu
squeak-dev@lists.squeakfoundation.org