[Lazarus] String vs WideString

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Aug 15 22:45:33 CEST 2017


On 2017-08-15 20:22, Luca Olivetti via Lazarus wrote:
> Wait a minute, why "abuse"?
> After all, before code aware strings, an ansistring could store any kind
> of arbitrary data with no problem and no conversion, and made it
> extremely easy


Just listen to what you are saying.... A string type and you want to 
store all kinds of non-string related data in that type. How is that not 
"abuse"???  Use a TBytes, TStream or other binary byte based storage 
mechanism. A string type was definitely not the right choice.

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


More information about the Lazarus mailing list