[TUHS] Array index history

Peter Jeremy peter at rulingia.com
Thu Jun 8 16:19:51 AEST 2017


On 2017-Jun-07 22:45:08 -0400, Robert Swierczek <rmswierczek at gmail.com> wrote:
>Keep in mind that C was/is primarily a language to write OS's and
>other system level software.  Hardware such as memory addresses, page
>tables, disk sectors, etc. are all indexed from zero for very good
>reasons.  I would shudder to contemplate an implementation of the Unix
>V6 kernel in a hypothetical C-with-one-based-arrays language.

Two counter-examples
1) CHS numbers sectors starting from 1, not 0.
2) Pr1meOS was written in Fortran. 

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170608/f0a81b6b/attachment.sig>


More information about the TUHS mailing list