🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #4097

Re: 0-based/1-based arrays

#4097
From: Uday Kurkure
Date: Thu, 17 Mar 1988 18:10
19 lines
1049 bytes
In article <942@micomvax.UUCP>, ray@micomvax.UUCP (Ray Dunn) writes:
> The question is, I believe, does the 'structure' fit naturally with the problem
> you are trying to solve when using the array.
> 
> Sometimes 0-based is what you want, sometime 1-based is what you want,
> sometimes n, or -n or etc is what you want!


   In Mathematics, zero means nothing, void. In computer science, zero
   has a meaning depending on the the context. There exists a memory location
   at zero address. As long as there are addresses starting from zero, 0-based/
   1-based arrays would be a matter of taste.


                                               ..Uday

   
   
   
Technical Details
Message-ID: <1886@gumby.mips.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!prls!mips!uday
References: <7161@sol.ARPA> <2740@mmintl.UUCP> <4343@june.cs.washington.edu> <942@micomvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!prls!mips!uday
From: uday@mips.COM (Uday Kurkure)
Newsgroups: comp.lang.modula2,comp.lang.misc
Subject: Re: 0-based/1-based arrays
Message-ID: <1886@gumby.mips.COM>
Date: 17 Mar 88 18:10:49 GMT
References: <7161@sol.ARPA> <2740@mmintl.UUCP> <4343@june.cs.washington.edu> <942@micomvax.UUCP>
Lines: 17