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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,893b3f38072bc3ff X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: access variable Q: Date: 1996/06/16 Message-ID: #1/1 X-Deja-AN: 160689087 references: <31C43F54.74E62073@jinx.sckans.edu> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-06-16T00:00:00+00:00 List-Id: David Morton asks "int *ptr; int i; ptr = &i;" [how to do in Ada] well you can exactly duplicate this using aliased and the 'Access attribute, but a best guess is that you do not want to do this. This sounds like a matter of rewriting C code in Ada but keeping C style, generally a bad idea. Why not tell us what your problem is instead of asking for help with your C-style solutions, there is probably a better way to do things in Ada. This kind of use of pointers is inherently risky.