[ENH] 'value:' raiseTo: 2 -> 'value:value:'
Dan.Ingalls at disney.com
Wed Sep 6 16:19:05 UTC 2000
>However, other things like:
> 'hello' . 3 . $l
>reveal quickly that we can use:
> 'hello' at: 3
> 'hello' atPin: 3
> 'hello' atWrap: 3
>to get $l. Hmm, I didn't know about #atPin: or #atWrap: before the
>first time I did this. Good way to explore an image.
...and what a cool way to do super-efficient repeated strings: make an object that overrides at: with atWrap: and you're done no matter what the repeat count is!
More information about the Squeak-dev