[fpc-pascal] Any chance to add the TStringBuilder to FCL?

Jürgen Hestermann juergen.hestermann at gmx.de
Sat Apr 16 13:13:31 CEST 2016


Am 2016-04-15 um 20:35 schrieb Sven Barth:
>
> Am 15.04.2016 18:37 schrieb "Jürgen Hestermann" <juergen.hestermann at gmx.de <mailto:juergen.hestermann at gmx.de>>:
> >
> > Another advantage of having 1-based indeces in dyn. arrays
> > would be that you could store indeces in unsigned integers
> > while with 0-based indices high() may give -1.
>
> Indices in Pascal are always signed.
>
>
Yes, but I could store indices in DWORD if they would be 1-based
and would not risk an exception if the index is "not valid" (which
would be 0 in this case while it's -1 for 0-based indices).
I would not be forced to make sure it is an signed integer where I store it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160416/7c72e352/attachment.html>


More information about the fpc-pascal mailing list