[ENH] 'value:' raiseTo: 2 -> 'value:value:'
Mats Nygren
nygren at sics.se
Wed Sep 6 15:26:10 UTC 2000
Dan Ingalls <Dan.Ingalls at disney.com> wrote:
> >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.
>
> Yes.
>
> ...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!
Yes, have experimented with things like that, but I tried to be "normal"
/Mats
More information about the Squeak-dev
mailing list
|