[fpc-pascal] copy(), length(), and setlength() is not mentioned in fpc docs?

Adrian Maier adrian.maier at gmail.com
Thu Dec 6 15:43:14 CET 2007


On Dec 5, 2007 5:18 AM, Tom Verhoeff <T.Verhoeff at tue.nl> wrote:
> On Wed, Dec 05, 2007 at 09:12:00AM +0100, Daniƫl Mantione wrote:
> >
> > Op Wed, 5 Dec 2007, schreef Bee:
> >
> > > Is it just me or above methods are indeed not mentioned within fpc's doc
> > > 2.2.0? Any texts that are supposed to be a link to above methods is not formed
> > > as a link.
> >
> > http://www.freepascal.org/docs-html/rtl/system/stringfunctions.html
>
> These functions are not only for strings, but (more generally) for dynamic
> arrays (as well).  I haven't checked to see if they are documented there,
> but one would expect/hope so.
>
> Can someone confirm this?

The fact that SetLength is usable for  dynamic arrays is mentioned here :
http://www.freepascal.org/docs-html/ref/refsu14.html#x36-390003.3.1

But I couldn't find anywhere the list of functions that can be used to
perform operations on dynamic arrays .
It is not intuitive nor logical to guess that the string functions
are valid for dynamic arrays as well , therefore it looks like
the dynamic array functions are in need of being explained better.

Cheers,
Adrian Maier



More information about the fpc-pascal mailing list