Xref: utzoo comp.lang.modula2:702 comp.lang.misc:1252 Path: 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 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