From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter@rulingia.com (Peter Jeremy) Date: Thu, 8 Jun 2017 16:19:51 +1000 Subject: [TUHS] Array index history In-Reply-To: References: <23afd785-e260-75ca-5c46-77c62fbcf3cd@kilonet.net> <016301d2dfc0$b098e250$11caa6f0$@ronnatalie.com> Message-ID: <20170608061951.GD83216@server.rulingia.com> On 2017-Jun-07 22:45:08 -0400, Robert Swierczek 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: