a simple question about streams

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


I was browsing the senders of respondsTo: (another implicit use of MOP 
entry that is abuse in Squeak) and
I found a lot of repeting sequence

	(stream respondsTo: #binary) ifTrue: [ stream binary] .
	
	(stream respondsTo: #close) ifTrue: [stream close].

Wonderful illustration of lack of common protocol....I was wondering 
why it was like that?
why all the streams cannot get close (even if per defaut closing a 
stream that could not get close woudl do nothing a.k.a NullObject).

Stef




More information about the Squeak-dev mailing list