On Wed, 28 Oct 2009 07:15:14 +0100
Jürgen Hestermann <juergen.hesterm...@gmx.de> wrote:

> > The language has evolved and short string is mostly a historical
> > remain. 
> 
> Definitely not! ShortString and AnsiStrings (and all other variants
> of string types) are just different ways to work with strings. Using 
> ShortStrings you can avoid a lot of problems which you can have with 
> AnsiStrings if you don't have the need for strings longer than 255 
> characters.
> 
> What I would critisize is the use of the generic type "string" at
> all. Mapping this to different types dependend on compiler switches
> or whatever is a can of worms. I would prefer that one of the clear
> genuine string types is used directly. Lots of code is dependend on
> the string type.

That's why you can set the mode for each unit or via a switch for
each package/project.

Mattias

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to