another pattern

ducasse ducasse at iam.unibe.ch
Fri Dec 12 19:36:28 UTC 2003


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