another pattern

ducasse ducasse at iam.unibe.ch
Fri Dec 12 19:50:30 UTC 2003


On 12 déc. 03, at 20:45, Colin Putney wrote:

> Stéphane,
>
> We had to do this kind of thing in Monticello as well. Basically it 
> boils down to the fact that the file reader registry was only recently 
> introduced. If you want your package to work in earlier images,  you 
> need to do something like this.

thanks and yes it makes sense for backward compatibility. it would be 
good to add this in the method comments because one day we will get rid 
of them....

Stef


>
> Colin
>
>
> On Dec 12, 2003, at 2:36 PM, ducasse wrote:
>
>> ned
>>
>> I saw another pattern based on respondsTo:
>>
>> SARInstaller>>initialize
>> 	"SARInstaller initialize"
>>
>> 	(FileList respondsTo: #registerFileReader:)
>> 		ifTrue: [ FileList registerFileReader: self ]
>>
>> It is used in SMLoader
>> TTFont and may be some other places.
>>
>> Why do you do that. Why FileList registerFileReader: self is not 
>> enough.
>> registerFileReader: and unregisterFileReader: methods are key methods 
>> for the registration
>> so not having them does not make a lot of sense.
>>
>> So what were your assumptions?
>>
>> Stef
>>
>>
>
>
>




More information about the Squeak-dev mailing list