Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-07

TStringStream

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Müller

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?

Regards

Michael

Reply by email

Michael Van Canneyt
to Michael Müller
Michael Müller wrote 7 lines
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.

Reply by email