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-26 13:43:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: what means the " ' " in use with a record type? Date: 26 Aug 2002 13:43:51 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0208261243.776ef21c@posting.google.com> References: NNTP-Posting-Host: 209.101.126.29 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1030394631 26125 127.0.0.1 (26 Aug 2002 20:43:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 26 Aug 2002 20:43:51 GMT Xref: archiver1.google.com comp.lang.ada:28429 Date: 2002-08-26T20:43:51+00:00 List-Id: tmoran@acm.org wrote in message news:... > > if Node were derived from N without any extensions, then x's value could > > be of either Node or N. > A qualified expression is normally only needed when there is an > ambiguity like this and you need to tell the compiler which you mean. > But in the case of allocators with initial value, you _always_ have to > use a qualified expression, regardless of whether there's an ambiguity > or not. Why the inconsistency? For documentation purposes? No, it is because it is always ambiguous, given you are not allowed to look inside the aggregate. I suppose you could have a rule that if there is only one composite type ..... :-)