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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8623fab5750cd6aa X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!uunet!dca.uu.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Thu, 17 Jun 2004 12:12:38 -0400 From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.5 (Windows/20040502) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Improving Ada's image - Was: 7E7 Flight Controls Electronics References: <40b9c99e$0$268$edfadb0f@dread16.news.tele.dk> <7J0xc.7371$8k4.269106@news20.bellglobal.com> <1086630278.542788@master.nyc.kbcfp.com> <8xlxc.27603$sS2.845496@news20.bellglobal.com> <1086715817.122983@master.nyc.kbcfp.com> <1086733411.736049@master.nyc.kbcfp.com> <3Auxc.11998$XY6.1296622@read2.cgocable.net> <40C85035.4020706@noplace.com> <40C9EC3B.60304@noplace.com> <40CD90A4.8030005@noplace.com> <40CEDCB5.9000509@noplace.com> <1087325485.307616@master.nyc.kbcfp.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1087488758.881520@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1087488759 11763 204.253.250.10 Xref: g2news1.google.com comp.lang.ada:1627 Date: 2004-06-17T12:12:38-04:00 List-Id: Robert I. Eachus wrote: > Now, putting on my language lawyer hat Hyman is "correct" Oh, sorry, I was just wrong. I didn't realize that String was indexed by Positive. Remeber, I don't know Ada (and I don't have an Ada compiler installed at the office!) The problem is that as a tutorial, I don't think that it actually teaches. That is, it makes perfect sense to Ada programmers who already know how to do this stuff. I don't think it makes any sense to an Ada newbie who is trying to figure out how to work with strings in Ada to accomplish what he was doing in C. Just for example, it is ubiquitous in C to have arrays of strings, either with or without a null pointer terminator: const char *colors[] = { "Red", "Green", "Blue", 0 }; const char *CMYK[] = { "Cyan", "Magenta", "Yellow", "Black" }; How do you carry this over into Ada?