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-24 12:30:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!upp1.onvoy!onvoy.com!news-out.visi.com!hermes.visi.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!59ce1190!not-for-mail Message-ID: <3CEE94BA.922A2191@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Help with Copying Shared Memory to Local References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 24 May 2002 19:30:16 GMT NNTP-Posting-Host: 63.184.110.81 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1022268616 63.184.110.81 (Fri, 24 May 2002 12:30:16 PDT) NNTP-Posting-Date: Fri, 24 May 2002 12:30:16 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:24676 Date: 2002-05-24T19:30:16+00:00 List-Id: "Beard, Frank [Contractor]" wrote: > > Jeffrey Carter wrote: > > > 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); > > > > Just curious. Why the "pragma Import" on the object? Pragma Import (Ada, ...); tells the compiler not to initialize the object. In many cases (including this one, most likely) no initialization will take place anyway, but pragma Import is the way to be sure. -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail