[fpc-devel] Method for write string into TStreamt

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Jul 21 21:42:50 CEST 2014

Dmitry Boyarintsev schrieb:
> How about introducing a default parameter?
> The parameter keeps the method backward compatible, allowing write a 
> string without the prefix.
> public procedure TStream.WriteAnsiString(
>   const S: string;
>   withLength: Boolean = true;

How should a string without a length be read back?


More information about the fpc-devel mailing list