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 08:56:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: pragma Import with 'Address clause Date: 19 Mar 2003 11:51:39 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1048093558 25314 128.183.235.92 (19 Mar 2003 17:05:58 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 19 Mar 2003 17:05:58 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:35516 Date: 2003-03-19T17:05:58+00:00 List-Id: Lutz Donnerhacke writes: > 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. I would hope Spark would prohibit the address clause as well! you are totally defeating the Ada type system! -- -- Stephe