[Modules] [Q] How to deal with stray-modules?

danielv at netvision.net.il danielv at netvision.net.il
Sat May 11 19:47:53 UTC 2002


Okay, I was unclear. I know (from the last time I did something silly
like this) what stray modules are. Also, I can access my class - it is
easily accessible by it's name. What I don't know is this:

***
How do I make my class, once again, part of a living module?
***

It's a bug that classes can be moved to stray module, in fact, stray
modules should not cooperate in any changes to the system at all. I've
just sent a fix to this particular bug.

Daniel
PS. You're right, never noticed that about emacs. Truth is I love emacs
as a concept, but empirically, I seem to prefer my editors simple. gedit
is my current main stay. Squeak, of course, would be nice, except that
the actual file becomes unsynched with the image it is edited through.
Which is quite a general problem, really (Celeste, changesets, PDA, so
forth).

Bergel Alexandre <bergel at iam.unibe.ch> wrote:
> Hello Daniel,
> 
> If you printIt that : 
> -)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)
> Module fromPath: #(Temporary Foo Bar) forceCreate: true. t := Module @ #(Temporary Foo Bar). ModuleInstaller unload: (Module @ #(Temporary Foo)). t path
> -)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)-)
> 
> You will get something like : #('stray-Module' 'bad parent, #2968')
> 
> You get a such path for a module when a module is not longer referenced in its parent module. All the classes defined in unloaded modules, become Obsolete.
> 
> > How do I get my class back?
> 
> Perhaps you can try to access your class by doing : 
> (Module @ #(Your Module Freshly Loaded)) at: #YourClass
> 
> > PS - I petition to move "save and quit" apart from "quit". Who's with
> > me?
> 
> :-) !!!!!!!!!!
> 
> Like for emacs C-x C-c for quitting, and C-x C-v for pasting a buffer.
> 
> Regards,
> Alexandre
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._
> Bergel Alexandre  http://www.iam.unibe.ch/~bergel
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^



More information about the Squeak-dev mailing list