[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] FilePlugin>>primitiveFileAtEnd for non-regular files (#232)

Nicolas Cellier notifications at github.com
Sun Apr 1 15:28:39 UTC 2018


For example in Squeak, we can rewrite atEnd like this:

    StandardFileStream>>atEnd
	"Answer whether the receiver is at its end. "
	collection ifNotNil: [ position < readLimit ifTrue: [ ^false ] ].
	self basicNext ifNil: [ ^true ].
	self skip: -1.
	^false

then entirely remove `primAtEnd:` which has no more sender.
I presume it should be more or less equivalent in Pharo.
Then tell about limitation and deprecation in `primitiveFileAtEnd` comment.

-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/232#issuecomment-377794428
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180401/3db9b4b2/attachment.html>


More information about the Vm-dev mailing list