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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!r4g2000prm.googlegroups.com!not-for-mail From: Edward Fish Newsgroups: comp.lang.ada Subject: Re: How do I write directly to a memory address? Date: Wed, 2 Mar 2011 16:46:47 -0800 (PST) Organization: http://groups.google.com Message-ID: <8985b302-96b8-4f22-aa4d-d64945047f90@r4g2000prm.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> <16u9ka51wbukr$.1fj2sb73j9rv6.dlg@40tude.net> <4d6d627b$0$11509$882e7ee2@usenet-news.net> <74986d0a-0d5b-4396-8c77-adff72e870a2@d26g2000prn.googlegroups.com> <4d6eafc7$0$17913$a8266bb1@postbox2.readnews.com> <4d6eb309$0$17913$a8266bb1@postbox2.readnews.com> <4d6ed212$0$17960$a8266bb1@postbox2.readnews.com> NNTP-Posting-Host: 174.28.181.54 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1299113207 15469 127.0.0.1 (3 Mar 2011 00:46:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 3 Mar 2011 00:46:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r4g2000prm.googlegroups.com; posting-host=174.28.181.54; posting-account=IGEw6QoAAAChe8btAoGmJk0kqF3q3VLA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 ( .NET CLR 3.5.30729; .NET4.0E),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:18720 Date: 2011-03-02T16:46:47-08:00 List-Id: On Mar 2, 4:26=A0pm, Hyman Rosen wrote: > > As it stands, anyone who wishes to have software written with > such exactitude is free to pay for it, and many do, in exactly > the cases you indicated where the cost of error is prohibitively > high. And in exactly those cases Ada seems to be [empirically] the forerunner/center-stage-star... so, what was your complaint? Ada can't prevent logic-errors, or misunderstandings, or misdesigns from ever occurring; no programming language can. A programming language *CAN* help to reduce those, however. I believe that Ada does, in fact, do this; one way Ada does so is with Strong Typing {now strong-typing can be circumvented via Unchecked_Conversion, or even (by choice of the programmer) not employed}. Having a separate Integer-type for, say, GALLONS and for POUNDS, and for MILES without *implicit* conversions between them is one concrete example; there is nothing barring the programmer from having all of those be SubType of Integer (Range Integer'Range) and freely mixing them as might be easily done in a C, Java, Assembler or even Pascal program. is