From mboxrd@z Thu Jan 1 00:00:00 1970 From: dave@horsfall.org (Dave Horsfall) Date: Thu, 8 Jun 2017 14:05:15 +1000 (EST) Subject: [TUHS] Array index history In-Reply-To: References: <23afd785-e260-75ca-5c46-77c62fbcf3cd@kilonet.net> <016301d2dfc0$b098e250$11caa6f0$@ronnatalie.com> Message-ID: On Wed, 7 Jun 2017, 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. Weren't the Burroughs mainframes implemented in Algol, likely with a 1-origin? Of course, I could be wrong (it was quite a few years ago since I touched a B-1700)... -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."