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-Thread: 103376,c9d5fc258548b22a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!postnews7.readnews.com!not-for-mail Date: Wed, 02 Mar 2011 09:51:04 -0500 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? 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> <4D6E0BA5.9080301@obry.net> In-Reply-To: <4D6E0BA5.9080301@obry.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4d6e596a$0$21954$882e7ee2@usenet-news.net> NNTP-Posting-Host: d4e592a2.usenet-news.net X-Trace: DXC=n398Ln65?>PS?okTkN:E;SQFZ3T]GPM]WmX0AG3X_jU_EREK78_1jB[VjKk:Lk^BNQcR12TN^Bg7^[3hNl4]a6J_YoLCIT2AA@U X-Complaints-To: abuse@usenet-news.net Xref: g2news2.google.com comp.lang.ada:18695 Date: 2011-03-02T09:51:04-05:00 List-Id: On 3/2/2011 4:19 AM, Pascal Obry wrote: > Le 01/03/2011 23:08, Hyman Rosen a �crit : >> What does that mean? Every program ultimately interfaces with its >> environment and must do so in the correct way. When a program gets >> this wrong then it has an error, and that is true even when the > > Exactly... So what? One single example: creating an interface to > spawn executable which must work on Windows and UNIXes. Have you do > so? I've been there and this is overly complex, not because Ada but > because issues I have descibed (quoting, slash/backslash) and > this because all this is *untyped* programming. Actually, the error in this case is believing that there should be such a single interface for both UNIX and Windows. It stems from laziness. (I'll bet the UNIX version existed first, and then got hammered on to try to make it work for Windows.) It's part of the same parcel as leads Dewar to rail against college CS programs which require students to write programs with GUIs. Programmers, who are lazy by nature, will be very happy to blame portability for failure to provide access to native features in the way that other native applications do. > When this is done it is just trivial and safe to use the interface. > That's the problem we are discussing with GNATcoll. No, it's not. GNATcoll had a very plain and simple error - it added quotes around a string that it should have left alone.