From: Simon Wright <simon@pushface.org>
Subject: Re: Help with type definition
Date: Fri, 16 May 2014 16:50:26 +0100
Date: 2014-05-16T16:50:26+01:00 [thread overview]
Message-ID: <ly38g9pvst.fsf@pushface.org> (raw)
In-Reply-To: Ehqdv.117084$QE3.74073@fx16.iad
Shark8 <OneWingedShark@gmail.com> writes:
> On 16-May-14 01:54, Dmitry A. Kazakov wrote:
>> Why -1 should
>> indicate null string and not 0 is a mystery.
>
> Because of the C-isms (a) that -1 indicates failure/non-presence, and
> (b) that all arrays are zero-based. -- IOW this is a format that has
> been prematurely optimized for C.
But it's the _length_ of the string; so what meaning would OP attach to
a received message with a length of zero, vs a length -1?
next prev parent reply other threads:[~2014-05-16 15:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-16 7:37 Help with type definition hanslad
2014-05-16 7:54 ` Dmitry A. Kazakov
2014-05-16 10:03 ` G.B.
2014-05-16 11:26 ` Jacob Sparre Andersen
2014-05-16 15:38 ` Shark8
2014-05-16 15:50 ` Simon Wright [this message]
2014-05-16 16:30 ` Shark8
2014-05-16 11:29 ` Jacob Sparre Andersen
2014-05-16 12:29 ` G.B.
2014-05-16 17:57 ` Jeffrey Carter
2014-05-21 20:45 ` hanslad
2014-06-27 22:05 ` hanslad
2014-06-28 7:26 ` Shark8
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox