[fpc-pascal] TStringStream

Michael Van Canneyt michael at freepascal.org
Sat Jul 16 10:42:23 CEST 2011



On Sat, 16 Jul 2011, Michael Müller wrote:

> Hi,
>
> in rtl\objpas\classes\classesh.inc TStringStream is derived from TStream. It seems there was a time when this was valid: http://delphi.wikia.com/wiki/TStringStream_Class. But in Delphi (at least 2009 and higher) TStringStream derives from TBytesStream which derives from TMemoryStream: http://docwiki.embarcadero.com/VCL/de/Classes.TStringStream. TBytesStream is not implemented in FPC but TMemoryStream so it should derive at least from TMemoryStream instead of TStream.
>
> In my code I could switch to TMemoryStream instead of TStringStream to compile it both under Delphi and FPC.
>
> Shall I add a bug tracker item?

Please do.

But I don't think it will be implemented before the unicode string is finished, 
because that is the reason Borland made the change.

Michael.


More information about the fpc-pascal mailing list