PositionableStream>>last

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

PositionableStream>>last

liang bing
Hi all,
I am reaing Class code,PositionableStream>>last

last
        "Return the final element in the receiver"

        ^ collection at: position



why not collection at: readLimit?
I love Smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: PositionableStream>>last

Bert Freudenberg

On 2013-02-18, at 04:38, liang bing <[hidden email]> wrote:

> Hi all,
> 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 -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners