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,start X-Google-Attributes: gid103376,public From: David Morton Subject: access variable Q: Date: 1996/06/16 Message-ID: <31C43F54.74E62073@jinx.sckans.edu>#1/1 X-Deja-AN: 160488983 content-type: text/plain; charset=us-ascii organization: student mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0b3 (X11; I; Linux 2.0.0 i486) Date: 1996-06-16T00:00:00+00:00 List-Id: How do I do the following in Ada? int *ptr; int i; ptr = &i; I know how to do dynamic stuff with an access pointer, but I can't read anything clear in the RM about accessing a static variable... for instance, I have a record that I want to have access variables access some of the elements: type int_ptr is access integer; type foo is record a, b, c : integer; end record; bar : foo; a_ptr := ?????? -- how do I make this point at bar.a ???? please post to email, in case the news server fails... :( -- David Morton mailto:dmorton@jinx.sckans.edu // If you use Netscape 2.0, 205 College, Winfield, KS 67156 // you can click on the mailto: part to reply! (HINT, HINT) :)