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-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!e9g2000vbk.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Wed, 2 Mar 2011 06:34:39 -0800 (PST) Organization: http://groups.google.com Message-ID: <94766542-d6cf-4191-bd28-2f8ba07a67db@e9g2000vbk.googlegroups.com> References: <67063a5b-f588-45ea-bf22-ca4ba0196ee6@l11g2000yqb.googlegroups.com> <31c357bd-c8dc-4583-a454-86d9c579e5f4@m13g2000yqb.googlegroups.com> <05a3673e-fb97-449c-94ed-1139eb085c32@x1g2000yqb.googlegroups.com> <4d4c232a$0$28967$882e7ee2@usenet-news.net> <4D4D6506.50909@obry.net> <4d50095f$0$22393$882e7ee2@usenet-news.net> <4d6d56c4$0$11509$882e7ee2@usenet-news.net> <4D6D6A90.2090108@obry.net> <4d6d6e60$0$11509$882e7ee2@usenet-news.net> <4d6e53c1$0$21954$882e7ee2@usenet-news.net> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1299076479 18716 127.0.0.1 (2 Mar 2011 14:34:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 Mar 2011 14:34:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e9g2000vbk.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012111 Red Hat/3.0.6-1.el5 Firefox/3.0.6,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:17722 Date: 2011-03-02T06:34:39-08:00 List-Id: Hyman Rosen wrote: > On 3/1/2011 7:41 PM, Randy Brukardt wrote: >> If "the environment" had a strongly typed Ada interface, >> then the error could not occur there. > > Isn't it the case that Ada proponents argue that Ada is a good > (and possibly the best) programming language in general, and not > just when interfacing to a strongly typed Ada interface? I sense > an attitude of "If it's good, thank Ada. If it's bad, it's the > fault of something else." I think everyone is correct here. I maintain that Ada is the best language that I know; this does not make all Ada programs or bindings perfect, and in fact could induce programmers into complacency. Trying to blame this GNATColl bug on SQL or on C is dishonest, IMHO. A bug is a bug and we, perfectionist Ada programmers, should know better than trying to find excuses. OTOH, it is also true that interfacing Ada with a weakly-typed language such as SQL and C is just as error-prone as programming in SQL or C in the first place. That's where perfectionist Ada programmers should show the attention to detail they've learned with the strongly-typed language, but without help from the compiler. -- Ludovic Brenta.