On 2016-05-11 10:48, Michael Van Canneyt wrote:
> Honestly, I don't understand this preoccupation with {$modeswitch  
> unicodestrings}
> 
> It just means that
> 
> Var
>   a : string;
> 
> is read by the compiler as
> 
> Var
>   a : unicodestring;
> 
> No more, no less.


It saves you from data loss in the case where you use units that use the
String data type and assign Unicode data to it -- and you run your
program on a system where the locale is not UTF-8 or UTF-16. eg: Latin-1.


Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to