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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ca21162c929cc36f X-Google-Attributes: gid103376,public From: Jonas Nygren Subject: Re: Implementing pointers to pointers in Ada Date: 1996/09/09 Message-ID: <32343EDC.4D9@ehs.ericsson.se>#1/1 X-Deja-AN: 179468973 references: content-type: text/plain; charset=us-ascii organization: Ericsson Hewlett-Packard Telecommunications AB mime-version: 1.0 reply-to: ehsjony@ehs.ericsson.se newsgroups: comp.lang.ada x-mailer: Mozilla 3.0b5a (WinNT; I) Date: 1996-09-09T00:00:00+00:00 List-Id: Vasilios Tourloupis wrote: > > Dear Ada users, > > As the title suggests, how would I go about implementing pointers to > pointers in Ada? > > For example, I have declared the following variable in C: > > unsigned **a; I think this will work: with Interfaces; subtype unsigned is Interfaces.Unsigned_32; type unsigned_ref is access all unsigned; type ref_unsigned_ref is access all unsigned_ref; > > How would this be expressed in Ada terms? > > Thanx in advance, > > Bill Tourloupis > +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ > | Vasilios E. Tourloupis | vasilios@insect.sd.monash.edu.au | > | Dept. of Software Development | vasilios@hestia.sd.monash.edu.au | > | Monash University, | /\ | > | Caulfield East, Vic., 3145 |___________/\ / \_______________| > | Australia | \/ | > +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+ > | Disclaimer: There are some that call me Bill! But I don't know why? | > +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+