🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4103

Re: 0-based/1-based arrays

#4103
From: Joe Keane
Date: Sat, 05 Mar 1988 09:42
9 lines
927 bytes

I find 0-based arrays to be more elegant.  The formulas for computing the 
position of an element are simpler, especially in a mulitdimensional array.  
The element which corresponds to size of the array is the beginning of the 
next array, which may be more useful than the last element in the array.  
However, i do like freedom of choice to sometimes pick a different base.

--Joe
Technical Details
Message-ID: <kW=wqIy00Uo507dUV3@andrew.cmu.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!jk3k+
References: <7161@sol.ARPA> <2740@mmintl.UUCP>, <4343@june.cs.washington.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!jk3k+
From: jk3k+@andrew.cmu.edu (Joe Keane)
Newsgroups: comp.lang.modula2
Subject: Re: 0-based/1-based arrays
Message-ID: <kW=wqIy00Uo507dUV3@andrew.cmu.edu>
Date: 5 Mar 88 09:42:44 GMT
References: <7161@sol.ARPA> <2740@mmintl.UUCP>,
 <4343@june.cs.washington.edu>
Organization: Carnegie Mellon University
Lines: 7
In-Reply-To: <4343@june.cs.washington.edu>