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 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!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny03.gnilink.net.POSTED!c2bfcbcf!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Improving Ada's image - Was: 7E7 Flight Controls Electronics References: <40b9c99e$0$268$edfadb0f@dread16.news.tele.dk> <04udnR-eHNChzSbdRVn-vw@gbronline.com> <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> Message-ID: From: "Ed Falis" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit User-Agent: Opera M2/7.51 (Linux, build 689) Date: Tue, 15 Jun 2004 22:08:41 GMT NNTP-Posting-Host: 141.154.126.91 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny03.gnilink.net 1087337321 141.154.126.91 (Tue, 15 Jun 2004 18:08:41 EDT) NNTP-Posting-Date: Tue, 15 Jun 2004 18:08:41 EDT Xref: g2news1.google.com comp.lang.ada:1537 Date: 2004-06-15T22:08:41+00:00 List-Id: On Tue, 15 Jun 2004 22:01:51 GMT, Hyman Rosen wrote: > And that's because Ada comes with a type named String which > behaves nothing at all like strings in C or C++, being just > a name for an array of characters, which may be declared with > runtime bounds or returned from a function but is then fixed > in size. > > The concept is foreign to C programmers, for whom arrays in > expressions decay to pointers, and which cannot be passed or > returned by value. And I'll bet that *no one explains this* > when teaching Ada. The semantic gap becomes so large that it's > no wonder that C programmers wind up frustrated when trying to > do simple things that work properly in their old language. That's an interesting observation, Hyman. Out of genuine curiosity, do you feel that Simon Johnston's tutorial addresses is reasonably? http://www.adahome.com/Ammo/cpp2ada.html#1.1.3 - Ed