[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] re-loading code

From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] re-loading code
Date: Sat, 22 Jan 2011 17:04:25 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.7

On 01/22/2011 04:52 PM, Stefan Schmiedl wrote:

>> 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.

Yes, it is possible to manually set the namespace... i normally don't do it.


> 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?

st> Smalltalk class decompile: #removeFeature:
'removeFeature: aFeature [
        "Remove the aFeature feature to the Features set"

        <category: ''special accessing''>
        Features class == Set ifFalse: [Features := Features asSet].
        Features remove: aFeature ifAbsent: []

For our concern here it is just a Set that is used by the PackageLoader to
decide if it needs to load something or not.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]