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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98e311935a219163 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-25 04:23:33 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Help with Copying Shared Memory to Local Date: 25 May 2002 04:23:32 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205250323.38881e25@posting.google.com> References: <3CED51CF.39E26FC6@acm.org> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022325812 16540 127.0.0.1 (25 May 2002 11:23:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 May 2002 11:23:32 GMT Xref: archiver1.google.com comp.lang.ada:24748 Date: 2002-05-25T11:23:32+00:00 List-Id: Jeffrey Carter wrote in message news:<3CED51CF.39E26FC6@acm.org>... > There's about a 9 out of 10 chance that this system does not need to be > dealing with addresses; that this way of doing things was dreamed up by > a C person who lacked the necessary familiarity with Ada 83 to be > competent to create this specification. I have seen this kind of misuse > of the language far too many times for it to be likely that this case is > different. OK, so we await your Ada 83 solution, given this criticism > A : Storage_Array (1 .. Storage_Length); > for A'Address use Destination; > pragma Import (Ada, A); > > B : Storage_Array (1 .. Storage_Length); > for B'Address use Source; > pragma Import (Ada, B); OUCH! This is erroneous code in Ada 83, so surely you are not saying that an Ada 83 programmer should have used this approach?