[Pharo-project] Fwd: PositionableStream>>last
From Squeak list:
Bert Freudenberg wrote
I am reaing Class code,PositionableStream>>last
last "Return the final element in the receiver"
^ collection at: *position*
why not collection at: *readLimit*?
That method shouldn't even exist. You're right it's buggy. Very likely (hopefully) to be unused too. Thanks for spotting, should be gone soon :)
- Bert -
-- View this message in context: http://forum.world.st/Fwd-PositionableStream-last-tp4671176.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
On Thu, Feb 21, 2013 at 5:11 AM, Sean P. DeNigris <sean@clipperadams.com> wrote:
That method shouldn't even exist. You're right it's buggy. Very likely (hopefully) to be unused too. Thanks for spotting, should be gone soon :)
another possibility is that the comment is buggy, not the code or method name. The "last" element can be understood as the "last element before the current position", or "the last element we just read". -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
participants (2)
-
Damien Cassou -
Sean P. DeNigris