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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6bf481efd29cf77b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-10 22:34:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!newspeer.monmouth.com!newscon02.news.prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!17b0e3b3!not-for-mail User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Subject: Re: Behavior of Stream Attributes On Access Types. From: "R. Tim Coslet" Newsgroups: comp.lang.ada Message-ID: References: Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit NNTP-Posting-Host: 207.214.213.172 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1023773583 ST000 207.214.213.172 (Tue, 11 Jun 2002 01:33:03 EDT) NNTP-Posting-Date: Tue, 11 Jun 2002 01:33:03 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: [[PAPDCA[S@WC\DYAZO\_TDBUKXD@D@MGPW^OBPLAH[\RSAANVUEAE[YETZPIWWI[FCIZA^NBFXZ_D[BFNTCNVPDTNTKHWXKB@X^B_OCJLPZ@ET_O[G\XSG@E\G[ZKVLBL^CJINM@I_KVIOR\T_M_AW_M[_BWU_HFA_]@A_A^SGFAUDE_DFTMQPFWVW[QPJN Date: Tue, 11 Jun 2002 05:33:03 GMT Xref: archiver1.google.com comp.lang.ada:25725 Date: 2002-06-11T05:33:03+00:00 List-Id: As I understand it, the LRM simply leaves it "implementation defined". I don't expect the value to be of any use... I always write custom 'Read and 'Write functions for access types specifically designed to instead read or write the "subtree" of the data structure the access points to, instead of the value. Of course this only works for types used to define simple "linear" and "tree" shaped data structures. It would get much more involved for the "general" case. -- R. Tim Coslet r_tim_coslet@pacbell.net Technology, n. Domesticated natural phenomena. > From: "Marin David Condic" > Organization: Posted on a server owned by Pace Micro Technology plc > Newsgroups: comp.lang.ada > Date: Mon, 10 Jun 2002 15:38:20 -0400 > Subject: Behavior of Stream Attributes On Access Types. > > I'm checking section 13.13.2 of the ARM to discover the default behavior of > the Stream 'Read, 'Write, 'Input and 'Output when they encounter an access > type. I'm not finding any clear indication of what gets put to the stream - > although there is a mention in paragraph 35 of raising Constraint_Error on > input if the value is not of its subtype. Can someone clarify the behavior? > > My inclination is to think that the sensible thing would be to call the > 'Read or 'Write for the thing pointed to by the access type, but this has > implications for dynamically allocated objects. Will it write/read a > (totally useless) access value? > > MDC > -- > Marin David Condic > Senior Software Engineer > Pace Micro Technology Americas www.pacemicro.com > Enabling the digital revolution > e-Mail: marin.condic@pacemicro.com > > >