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,2c7667d500b3afdc X-Google-Attributes: gid103376,public From: adam@irvine.com (Adam Beneschan) Subject: Re: Puzzling question Date: 1997/05/08 Message-ID: <5ktmck$lcp$1@krusty.irvine.com>#1/1 X-Deja-AN: 240311789 References: <337209D7.4D25@aisf.com> Organization: /z/news/newsctl/organization Newsgroups: comp.lang.ada Date: 1997-05-08T00:00:00+00:00 List-Id: "Chris Sparks (Mr. Ada)" writes: >with System; > >package body T is > > procedure R (V : in System.Address) is begin > > null; > > end R; > > procedure S (U : out Rec_Type) is begin > > U.A := 1; > U.B := 2; > > R (V => U.A'Address); -- Why is this valid???????????????? > > end S; > >end T; 6.2(5) says "Reading the bounds and discriminants of the formal parameter and of its subcomponents is allowed, but no other reading." I don't know whether "reading" is defined explicitly in the Ada83 RM, but I would suspect that taking the 'ADDRESS of a parameter is not considered "reading". -- Adam