[fpc-devel] Method for write string into TStreamt

Dmitry Boyarintsev skalogryz.lists at gmail.com
Tue Jul 22 18:53:50 CEST 2014

On Tue, Jul 22, 2014 at 12:17 PM, thaddy at thaddy.com <thaddy at thaddy.com>

>  What I was a little bit more than hinting at in my previous answers is
> that it is impossible for an abstract read stream to know that there's a
> string to read. There is at least one higher level of implementation
> necessary: one that recognizes a string.
> That means probably something like  storing the length and  storing a
> string marker and/or use RTTI for strings, to be consistent.

Actually after rereading both threads (with "Re" and without "Re" in the
subject), it's quite clear to me that I should have not posted to it at
all  :)

My only other 2 cents would be - lets not modify the base class, but rather
create a task-convenient wrappers in forms of (inline) functions or
class-helpers. These wrappers would be stored in a project or a developer's
library, rather being added to the base RTL.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140722/ab7eefa4/attachment.html>

More information about the fpc-devel mailing list