-- -*- mode: eiffel -*-
-- $Id: strcat.se,v 1.3 2001/04/29 06:13:05 doug Exp $
-- http://www.bagley.org/~doug/shootout/
-- from: Friedrich Dominicus
class STRCAT
creation
make
feature
concat_string : STRING is "hello%N";
make is
local
i,n : INTEGER;
str: STRING;
do
if argument_count = 1 then
n := argument(1).to_integer
else
n := 1
end
from i := 1
!!str.make(100);
until i > n
loop
str.append(concat_string);
i := i + 1;
end;
io.put_integer(str.count);
io.put_character ('%N');
end;
end