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,bb6f4bd169077fb3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-13 09:21:54 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!newsfeed-east.nntpserver.com!nntpserver.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.clear.net.nz!news.clear.net.nz.POSTED!not-for-mail NNTP-Posting-Date: Thu, 13 Feb 2003 11:21:36 -0600 From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: Representing data differently Date: Fri, 14 Feb 2003 06:21:38 +1300 Message-ID: References: <686be06c.0302070615.3943b629@posting.google.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Organization: Customer of Mercury Telecommunications Ltd Cache-Post-Path: drone5.qsi.net.nz!unknown@tnt1-203.quicksilver.net.nz X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) X-Original-NNTP-Posting-Host: drone5-svc-skyt.qsi.net.nz X-Original-Trace: 14 Feb 2003 06:21:33 +1300, drone5-svc-skyt.qsi.net.nz NNTP-Posting-Host: 203.97.37.6 X-Trace: sv3-XP5D7SYu1wpOcybp7Vi0peUM70x8ddSPOKTkqLC5v1jYJJi+/Z+aOzQP0oRUkw2gwtV7sNci1saZUpt!oip6K1jRUi+hMmvfGJdrddymLXbXr4A1FG1K74l4sgJ56iFIw6pKXU0eXpPXox2I75dbI2rE1+8H!ZZ3is+k= X-Complaints-To: Complaints to abuse@clear.net.nz X-DMCA-Complaints-To: Complaints to abuse@clear.net.nz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:34061 Date: 2003-02-14T06:21:38+13:00 List-Id: On 10 Feb 2003 12:47:23 GMT, Colin_Paul_Gloster@ACM.org (Colin Paul Gloster) wrote: ... > for X'Address use Y'Address; > pragma Import (Y); > -- :Stops default initialising of pointers (not in GNAT 3.14) ... >Why is the convention missing from this import statement? That is quoted text, and the quote could have been corrected. Thus I object to the use of the present tense in the question. It does not seem to be an interesting question. The solution I showed is not very nice, with how the "-gnatR" option to show byte offsets might be done, with an a one or more edits and compiles until Ada union struct type is defined properly. The rule on no default initializations is defined with this text: Ada Reference Manual : B.1 Interfacing Pragmas 38. Notwithstanding what this International Standard says elsewhere, the elaboration of a declaration denoted by the local_name of a pragma Import does not create the entity. Such an elaboration has no other effect than to allow the defining name to denote the external entity. 38.a. Ramification: This implies that default initializations are skipped. (Explicit initializations are illegal.) For example, an imported access object is not initialized to null. http://www.adaic.org/standards/95aarm/html/AA-B-1.html