Want: #slice: (Re: [squeak-dev] Noob question: array slice?)

Bert Freudenberg bert at freudenbergs.de
Fri Aug 6 13:07:29 UTC 2010


On 06.08.2010, at 15:02, Ralph Johnson wrote:

> After I looked up the name for copyFrom:to:, I decided to find it with
> method finder.  I don't use method finder much, which is my own
> failing.  I had to play around with it a bit because Bert's original
> input didn't work for me.   What worked was
>  'Hello'. 2 . 4 . 'ell'
> which gave me copyFrom:to: as the only answer
> 
> Every time I use method finder I ask myself why I don't use it more!
> "Intro to Squeak" documentation, including my own, should emphasize it
> more.
> 
> But method finder has its limits.  'Hello'. (2 to: 4). 'ell' doesn't
> show anything, because there is no method with that exact combination
> of arguments.
> 
> -Ralph

Works for me, both in a trunk image and a 3.8-derived one. Where did you try?

- Bert -





More information about the Squeak-dev mailing list