[fpc-devel] PShortString

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Sep 9 15:52:07 CEST 2010

When dynamic strings are used all around, is the use of pointers to 
ShortString still recommended? (fmodule contains a lot of them)

In many cases (almost all I found) the strings are duplicated when 
assigned, because the given dynamic strings disallow to simply copy the 

IMO P[Short]Strings only were useful when the referenced string shall be 
changed later, with that change reflected automatically in all 
references. Since this seems not to occur anywhere, I'd suggest to 
replace or retype PShortString by [Ansi]String.


More information about the fpc-devel mailing list