[fpc-pascal] TStringStream.DataString returns garbage?
Lars
noreply at z505.com
Sun Feb 5 06:11:16 CET 2012
it seems
http://docwiki.embarcadero.com/VCL/XE2/en/Classes.TStringStream.WriteString
in delphi the WriteString() function accepts a strongly typed string.
This might be a compatibility problem in delphi mode since in fpc,
writestring accepts a untyped pointer if i am not mistaken.
Different behaviors, right? A strongly typed string parameter wouldn't
send in the length of the string AFAIK, it would just send the string
contents.
so if someone was porting code from delphi, wouldn't this produce
different behavior in fpc?
More information about the fpc-pascal
mailing list