Am 28.02.2012 08:06, schrieb Michael Schnell:
On 02/28/2012 05:04 AM, Martin Schreiber wrote:
I read that we should use TBytes instead of AnsiString in order to
implement combined binary/character buffers with automatic memory
management.

Why ?

Because of Delphi compatibility and code cleanness.

To me ("Ansi"-) strings seem a lot more convenient in many cases (e.g.
when implementing a kind of protocol on a Byte Stream.

Me too. :-)
Often we need to combine buffer data from binary pieces and character data/strings.

Martin
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to