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, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,573be8c453ecbff4 X-Google-Attributes: gid103376,public From: "Pat Rogers" Subject: Re: 'Read for pointers Date: 2000/07/27 Message-ID: #1/1 X-Deja-AN: 651424865 References: <8lndgv$1om$1@nnrp1.deja.com> <8lpeog$gvc$1@nnrp1.deja.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuseswbell.net X-Trace: nnrp3.sbc.net 964709095 208.191.184.67 (Thu, 27 Jul 2000 09:44:55 CDT) Organization: SBC Internet Services X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 27 Jul 2000 09:44:55 CDT Newsgroups: comp.lang.ada Date: 2000-07-27T00:00:00+00:00 List-Id: "Ted Dennison" wrote in message news:8lpeog$gvc$1@nnrp1.deja.com... > In article , > "Pat Rogers" wrote: > > > "Ted Dennison" wrote in message > > news:8lndgv$1om$1@nnrp1.deja.com... > > > The problem is that Item is an *out* parameter. That means I won't > > > have acces to the pointer's old value inside Read. There's no way I > > > Further to my previous post, to the effect that one can indeed read > > mode out parameters: the access value of the actual is copied into the > > formal, so you get a meaningful value coming in even though the mode > > is out. See RM 6.4.1{12,13} > > Wow. That's one I would not have guessed. So there's effectively no > difference between "out" and "in out" for access types, composite types > with discriminants, or record types with default field values? %-} As long as the latter two happen to be passed by copy (access types always are). -- Pat Rogers Consulting and Training in: http://www.classwide.com Deadline Schedulability Analysis progers@classwide.com Software Fault Tolerance (281)648-3165 Real-Time/OO Languages Adam ... does not deserve all the credit; much is due to Eve, the first woman, and Satan, the first consultant. Mark Twain