'[PERFECTION]' repeated: (1234 factorial) (was Re: '[ENH]' repeat: 2)

Bert Freudenberg bert at isg.cs.uni-magdeburg.de
Thu Sep 7 11:41:35 UTC 2000


On Thu, 7 Sep 2000, Mats Nygren wrote:

> Bert Freudenberg <bert at isg.cs.uni-magdeburg.de> wrote:
> > Well, Mats, if we want a special method for repeating strings, it should
> > be as efficient as possible.
>
> [...] The way I have written it is efficient unless there is something
> terrible wrong with WriteStream>>nextPutAll:, it is easy to
> understand, and I'm using it only for trivial things. [...]

Yep, it's fine for small repeat counts, which certainly would be the
common case. I'm sorry for sounding nit-picky. If I had intended that, I
had pointed out there's an off-by-one error in the method comment ;^)

-- Bert






More information about the Squeak-dev mailing list