[fpc-pascal] NewStr error in RTL documentation
Leonardo M. Ram�
martinrame at yahoo.com
Mon Sep 4 19:04:55 CEST 2006
Ok. Do you know a way to allocate a new PString?. In Delphi NewStr does it.
--- Peter Vreman <peter at freepascal.org> wrote:
> At 14:41 4-9-2006, you wrote:
> >I found that the documentation of the rtl (objects unit) contains a
> >small error in the Synopsis of
> >the NewStr function.
> >It says:
> > "Synopsis: Allocate a copy of a SHORTSTRING on the heap."
> >I think you should replace the word SHORTSTRING by STRING.
> No, shortstring is correct. It doesn't work for example with ansistring
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
Leonardo M. Ramé
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the fpc-pascal