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: ncohen@watson.ibm.com (Norman H. Cohen) Subject: Re: Implementing pointers to pointers in Ada Date: 1996/09/09 Message-ID: <511ngk$g6n@watnews1.watson.ibm.com>#1/1 X-Deja-AN: 179561942 distribution: world references: organization: IBM T.J. Watson Research Center reply-to: ncohen@watson.ibm.com newsgroups: comp.lang.ada Date: 1996-09-09T00:00:00+00:00 List-Id: In article , Vasilios Tourloupis writes: |> For example, I have declared the following variable in C: |> |> unsigned **a; |> |> How would this be expressed in Ada terms? type Unsigned is mod 2**Integer'Size; -- or whatever you choose type Pointer_To_Unsigned is access all Unsigned; type Pointer_to_Pointer_To_Unsigned is access all Pointer_To_Unsigned; A: Pointer_To_Pointer_To_Unsigned; Are you sure you need pointer-to-pointer-to unsigned? In particular, if you are writing a procedure intended to set a Pointer_To_Unsigned variable, you can pass that variable itself as a Pointer_To_Unsigned parameter of mode out or in out, rather than passing a pointer to that variable as a Pointer_To_Pointer_To_Unsigned parameter. -- Norman H. Cohen ncohen@watson.ibm.com