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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Overloading operator =?utf-8?B?4oCcPeKAnQ==?= for anonymous access types? Date: Sat, 12 Jan 2019 14:01:43 +0000 Organization: A noiseless patient Spider Message-ID: References: <167dc83d-daac-49eb-ba79-48866ccde39d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="c5c9c60e67c5aad7af4ff0db5caff2dd"; logging-data="29549"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18j3OyOvyU9PvmTzBd+Bc/9rs9UEp+oYro=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:cx0ZcNfF+46ugN6RIu111s8bdKw= sha1:rWczaGhTd7r3fKFOOKznuZPQCYw= Xref: reader01.eternal-september.org comp.lang.ada:55271 Date: 2019-01-12T14:01:43+00:00 List-Id: Simon Wright writes: > I'm not at all clear why the example code is legal, or why it would be > legal to call it; since 'access Cell' appears to match "neither operand > shall be of an access-to-object type whose designated type is D or > D'Class, where D has a user-defined primitive equality operator ..." Still not clear. Note to self: do *not* attempt to define "=" for anonymous access types! Would have liked the AIs to have said "it is illegal to define "=" for anonymous access types".