[Lazarus] String vs WideString

Luca Olivetti luca at wetron.es
Wed Aug 16 00:41:48 CEST 2017


El 15/08/17 a les 22:45, Graeme Geldenhuys via Lazarus ha escrit:
> 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.

A "string" was just a handy container for bytes so I think it was the 
right choice for storing, er, bytes.

Bye

-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007


More information about the Lazarus mailing list