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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news3.google.com!feeder.news-service.com!feeder.news-service.com!2a02:590:1:1::196.MISMATCH!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How do I write directly to a memory address? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH 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> <16u9ka51wbukr$.1fj2sb73j9rv6.dlg@40tude.net> <4d6d627b$0$11509$882e7ee2@usenet-news.net> Date: Tue, 1 Mar 2011 22:37:24 +0100 Message-ID: <29c4lixc0ght$.14kkfz1kij135.dlg@40tude.net> NNTP-Posting-Date: 01 Mar 2011 22:37:21 CET NNTP-Posting-Host: 6685e702.newsspool2.arcor-online.net X-Trace: DXC=TOkZU2CbMlO2jYf>V4L0gLA9EHlD;3YcB4Fo<]lROoRA8kF On Tue, 01 Mar 2011 16:17:48 -0500, Hyman Rosen wrote: > On 3/1/2011 3:47 PM, Dmitry A. Kazakov wrote: >> It should serve as a caution against deploying damaging, unsafe and often >> useless technologies like RDBMS. There should be no such thing (there >> definitely exist better approaches to persistence) and no languages like >> SQL. > > Hmm. The whole world uses C and C++, but that's bad. The whole world > uses relational databases and that's bad too. There are lot of bad things used by the "whole world," more than you think. > Yet somehow the whole > world seems to get along. Maybe it's just you. No, it is not me, because I am using C, C++ and RDBMS as well. >> No, Ada is immune exactly to this class of errors, which arise from >> unnecessary type conversions. > > Except that this error has nothing to do with "unnecessary" type > conversions. It is a plain old error due to a failure to distinguish > between a string being interpolated into an SQL statement and a > string being passed to be bound to an SQL statement parameter. If that interface were properly typed neither would be a string. > And this is an Ada interface to SQL maintained by the same people > who maintain the GNAT compiler. If they're providing interfaces > with "unnecessary type conversions" that cause errors, why should > anyone believe that programming in Ada is the wonderful thing that > it's proponents claim? They must do it this way, because the database interface is untyped. Lack of typing relies upon the "competent" programmers making no type errors. What we see here is the myth "any competent program would never make that silly error" busted. AdaCore programmers are undoubtedly competent. Anything that can possibly go wrong, does. (the Murphy's law) This not only explains why weak typing is wrong. It also does why strong typing will not be used and why C/C++/SQL/Perl & Co. keep on ruling the "whole world." *Because* that is wrong! -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de