From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d3a1501d97dab65 X-Google-Attributes: gid103376,public From: nasser@apldbio.com Subject: Re: C to Ada : a piece of code Date: 1996/09/09 Message-ID: <510i03$62r@lex.zippo.com>#1/1 X-Deja-AN: 179501931 references: <3231732C.2781@virgoa4.in2p3.fr> <01bb9d61$537fe5e0$2b8371a5@dhoossr.iquest.com> organization: Perkin ELmer newsgroups: comp.lang.ada Date: 1996-09-09T00:00:00+00:00 List-Id: In article <01bb9d61$537fe5e0$2b8371a5@dhoossr.iquest.com>, "David says... ...snip.. > 2. Xavier specified a 0-based index for the array, whereas your is >1-based. I know that C gives no choice in the matter, but Ada does, and >many times the 0-based index is more mathematically convenient, depending >on the application. > One of the things I dislike most about C/C++ is that arrays start from 0. Arrays that start from 1 are much easier to work with and more natural. IMHO. Nasser -- Nasser Abbasi. C/C++/Ada Solaris. Perkin Elmer - Applied BioSystem division. email: nasser@apldbio.com MSEE, MSCS, MSCE, Fide chess master (FM). "640K ought to be enough for anybody." Bill Gates, 1981 "I think there is a world market for maybe five computers." Thomas Watson, chairman of IBM, 1943 "There is no reason anyone would want a computer in their home." Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977 "This 'telephone' has too many shortcomings to be seriously considered as a means of communication." Western Union internal memo, 1876. "Heavier-than-air flying machines are impossible." Lord Kelvin, president, Royal Society, 1895. "Everything that can be invented has been invented." Charles H. Duell, Commissioner, U.S. Office of Patents, 1899.