[fpc-pascal] Weird string behavior

Michael Schnell mschnell at lumino.de
Fri Jul 29 09:55:28 CEST 2016


On 07/28/2016 11:38 AM, Santiago A. wrote:
> And what are the rules for changing left side operand?
Extremely hard to define when trying to follow any decent logic, unless 
the decision is either "never" (i.e. a strictly static typing) or 
"always" (a strictly dynamic typing).

A way out could be to set all "normal" string types to behave as 
strictly static typing (like any other types in Pascal) and a single 
dedicated (but intended to be used always where appropriate, e. g. in 
"TStrings") String type to behave as strictly dynamic typing).

Analyze and suggestions see -> 
http://wiki.lazarus.freepascal.org/not_Delphi_compatible_enhancement_for_Unicode_Support

-Michael




More information about the fpc-pascal mailing list