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!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!nwrdny02.gnilink.net.POSTED!0e8a908a!not-for-mail From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.7a (Windows/20040614) X-Accept-Language: en-us, 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> <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> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Tue, 15 Jun 2004 22:01:51 GMT NNTP-Posting-Host: 68.161.84.150 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1087336911 68.161.84.150 (Tue, 15 Jun 2004 18:01:51 EDT) NNTP-Posting-Date: Tue, 15 Jun 2004 18:01:51 EDT Xref: g2news1.google.com comp.lang.ada:1536 Date: 2004-06-15T22:01:51+00:00 List-Id: Warren W. Gay VE3WWG wrote: > Its not a function of memory. Its a function of programmers > taking the path of least resistance. In fact you hear this > from C programmers all the time when they try to learn > Ada ("I just want to do ...", or "it won't let me do...", > "why can't I..."). Ada enforces more rigour in the > code's design. I'll bet you good money that I can tell you exactly what in the code those frustrated C programmers are talking about; string handling. 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.