[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] re-loading code
From: |
Stefan Schmiedl |
Subject: |
Re: [Help-smalltalk] re-loading code |
Date: |
Sat, 22 Jan 2011 16:52:16 +0100 |
On Sat, 22 Jan 2011 16:15:27 +0100
Holger Hans Peter Freyther <address@hidden> wrote:
> On 01/22/2011 03:55 PM, Stefan Schmiedl wrote:
> > Greetings,
>
> > How do I get the updated MyWidget code into the running iliad.im
> > so that the next invocation actually uses the new code?
>
> In general i think this is something where GNU Smalltalk could be a lot
> better.
I hope that it's just a matter of finding the correct sequence of message
sends and then encapsulating them into something short :-)
> When you try to use FileStream fileIn: 'Source' you will need to
> manually set the right namespace.
which I should be able to do by providing some wrapper.
>
> What I tend to do is to either:
> a)
> $ Smalltalk removeFeature: #MyMod. PackageLoader fileInPackage: #MyMod
Aha. I was missing the removeFeature: message. Obviously I need to read
the docs again. Having a bad memory is a two-edged sword, as I end
up in newbie-situations more often than usual ;->
What happens to instances of classes defined in package MyMod during
removeFeature? Are they kept around and migrated somehow to the new structure
when that is loading?
> b)
> When developing the module just load everything from the module in
> the current namespace with 'FileStream fileIn' and then load new code
> again.
>
Oh. Now that you've said it, it's as obvious as the invention of the catflap.
Thanks!
s.