Symbol allInstances

Andreas Raab andreas.raab at gmx.de
Tue Jul 31 07:22:00 UTC 2007


Symbol allSymbols is the correct idiom to use. Symbol allSubInstances is 
overkill and very slow.

Cheers,
   - Andreas

nicolas cellier wrote:
> Philippe Marschall <philippe.marschall <at> gmail.com> writes:
> 
>> Browsing through a 3.9 image I found three senders of Symbol
>> allInstances which store the result in a temp during image segment
>> export:
>> ImageSegment >> #copySmartRootsExport:
>> CodeLoader >> #exportCodeSegment:classes:keepSource:
>> SystemDictionary >> #writeImageSegmentsFrom:withKernel:
>> Is this a problem?
>>
>> Cheers
>> Philippe
>>
> 
> Yes, Symbol is now an abstract class.
> Symbol allInstances size = 0.
> There are only ByteSymbol or WideSymbol in the image.
> If goal is to create strong pointers as mentionned in comment, then Symbol
> allSubInstances would be better.
> 
> Nicolas
> 
> 
> 




More information about the Squeak-dev mailing list