Jürgen Hestermann schrieb:

where I answered:

----------------------------------
String is generic so it can be pchar, shortstring or ansistring or ....
----------------------------------

because I think that it is quite irrelevant what type of string (ShortString, AnsiString, pchar) is used for the parameter.

Sorry, *generic* has nothing to do with string *assignment compatibility*. It means that String can be ShortString (long ago), and will become an UnicodeString soon.

PChar, ShortString and AnsiString are different types, but the compiler knows how to convert between each other.

DoDi


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

Reply via email to