Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-09

NewStr error in RTL documentation

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ram�

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.

Leonardo M. Ramé
http://leonardorame.blogspot.com

__________________________________________________ Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Peter Vreman
to Leonardo M. Ram�
you wrote 8 lines
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

Peter

Leonardo M. Ram�
to Peter Vreman

Ok. Do you know a way to allocate a new PString?. In Delphi NewStr does it.

--- Peter Vreman wrote 19 lines
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 Peter _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Leonardo M. Ramé
http://leonardorame.blogspot.com

__________________________________________________ Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com