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

danielv at netvision.net.il danielv at netvision.net.il
Sat May 11 21:48:29 UTC 2002


Ha! it works.

Many thanks, Alexandre.

Daniel

Bergel Alexandre <bergel at iam.unibe.ch> wrote:
> > How do I make my class, once again, part of a living module?
> 
> Does the method addAssoc:export: do what you want ?
> 
> -`-`-`-`-`-`-`-`-`-`-`-`-`-`-`-`
> yourModule addAssoc: (Association key: #NameYourClass value: YourClass) export: true.
> YourClass module: yourModule.
> -,-,-,-,-,-,-,-,-,-,-,-,-,-,-,-,
> 
> Alexandre
> 
> > 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
> > > ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^
> 
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._
> Bergel Alexandre  http://www.iam.unibe.ch/~bergel
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^



More information about the Squeak-dev mailing list