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,ca23420b45ed64d7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-31 13:49:44 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!sjc72.webusenet.com!sjc70.webusenet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Address representation clause is getting 0 Date: Wed, 31 Dec 2003 15:48:36 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:4001 Date: 2003-12-31T15:48:36-06:00 List-Id: "Luke A. Guest" wrote in message news:pan.2003.12.31.13.53.00.912339@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co. uk... > I think that this is an elaboration problem. Now as I don't have a runtime > or any tools, I need to rely on my own code (think of this as an OS > kernel). > > Does anyone know what I need to do to get this to work? Ada access objects are initialized to null by default. The object to which you applied the address clause is thus getting initialized. You have to tell the compiler not to do that, and the way you do that is to give a pragma Import. Something like pragma Import (SB_Block, Ada); will suppress the initialization, allowing you to read the data. As to why you can't read the 'Address itself, I don't know. That looks like a bug to me. Randy.