> Maybe a StringBuffer type is needed for pascal

Do you mean "in pascal" or "for FreePascal"? ;-)

> for very large strings that
> constantly change via concatenations. Instead of reserving memory for the
> ansistring to whatever amount you request, the stringbuffer type would reserve
> extra memory for you in a specifyable increment (256K, 128K, 20K, whatever you
> choose). If the string has a concatenation on queue which is larger than the
> increment size, then the stringbuffer allocates enough memory with overlap
> (several increments until it fills the need).

I guess it's not so hugely useful or else someone would have
contributed it already. This is much more important in Java because
the String objects are constant/immutable and thus can't be
reallocated.
But maybe a method in TStringList to return all the text without
adding linefeeds could be handy ;-)

Cheers,
Flávio

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to