[fpc-devel] Method for write string into TStreamt

thaddy at thaddy.com thaddy at thaddy.com
Tue Jul 22 12:46:00 CEST 2014


A case for ternary computing is not really a bad idea ;)

On 21-7-2014 21:42, Hans-Peter Diettrich wrote:
> 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?
>
> DoDi
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list