comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <OneWingedShark@gmail.com>
Subject: Re: Help with type definition
Date: Fri, 16 May 2014 09:38:21 -0600
Date: 2014-05-16T09:38:21-06:00	[thread overview]
Message-ID: <Ehqdv.117084$QE3.74073@fx16.iad> (raw)
In-Reply-To: <1fg1g0pncjb4l$.1qve7hld7nxqv.dlg@40tude.net>

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.


  parent reply	other threads:[~2014-05-16 15:38 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 [this message]
2014-05-16 15:50     ` Simon Wright
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