PositionableStream>>isEmpty

Bob Arning arning at charm.net
Thu Jul 9 17:11:16 UTC 1998


'From Squeak 2.1 of June 30, 1998 on 9 July 1998 at 1:05:33 pm'!

!PositionableStream methodsFor: 'testing'!
isEmpty
	"Answer whether the receiver's contents has no elements."

	^position = 0! !

Wouldn't it be better as

	^readLimit = 0

?

Cheers,
Bob





More information about the Squeak-dev mailing list