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,a691dc29968966aa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-19 07:37:10 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!xyzzy!nntp From: B0966864 Subject: Re: pragma Import with 'Address clause X-Nntp-Posting-Host: pb088791.mw.nos.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3E7889F1.368333E4@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: Mime-Version: 1.0 Date: Wed, 19 Mar 2003 15:17:05 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (Windows NT 5.0; U) Xref: archiver1.google.com comp.lang.ada:35513 Date: 2003-03-19T15:17:05+00:00 List-Id: The Pragma Import should not be needed. I have used the overlays and do not have the Import statements for any of them in this case. You can also use the syntax of for b use at a'Address I have seen both used in ada95 Jerico Lutz Donnerhacke wrote: > > A common technique to reinterpret data is: > a : AT; > [...] > b : BT; > for b'Address use a'Address; > pragma Import(Ada, b); > > Is the "pragma Import" really necessary? Of course, the ARM says, that > elaboration and definition of the imported object is externally defined. So > they are omitted from the Ada code itself. > > Assume BT is a record without any default expressions. Does this mean, the > pragma can be omitted from the source code? > > Background: Spark prohibits the use of Pragma Import on objects. >