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,59e1f81123faf689 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-24 23:16:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.stealth.net!news.stealth.net!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr21.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: what means the " ' " in use with a record type? References: <5ee5b646.0208240519.9e2a872@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.115.105.181 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr21.news.prodigy.com 1030256151 ST000 67.115.105.181 (Sun, 25 Aug 2002 02:15:51 EDT) NNTP-Posting-Date: Sun, 25 Aug 2002 02:15:51 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: F[O[SX[DGJVOBFD[LZKJOPHAWB\^PBQLGPQRZQMIWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Sun, 25 Aug 2002 06:15:51 GMT Xref: archiver1.google.com comp.lang.ada:28387 Date: 2002-08-25T06:15:51+00:00 List-Id: > This is highly misleading, The questioner asked about the apostrophe, and > Tom is answering about the whole construct. I sincerely hope I didn't mislead the questioner. I thought about including a mention of the more general subject of qualified expressions, but, given the rest of the question: > Has it anything to do with pointers or only in memory writing? it seemed to me better to give a simple answer to the immediate question. I suspect that qualified expressions are fairly rare in practice except for an allocation with an initial value. > x := new (value => x, to => 1); > > then the allocator has no idea what you are talking about, since there is > nothing to say that this is a node. The qualified expression fixes this If x is an access to type node, why is the qualified expression needed, while it's not needed in: type fruits is (apple, orange, banana); type colors is (red, orange, yellow); color : colors; fruit : fruits; begin color := orange; fruit := orange;