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!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: troubles learning OOP: expected type "Parent.Some_Child", found type Parent'Class Date: Mon, 12 Feb 2018 18:40:32 +0000 Organization: A noiseless patient Spider Message-ID: References: <634e9064-33f8-42c0-9032-e630f98c89d4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b6495a8dbc2779c7727059ea44b5e007"; logging-data="10253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Odfuko3HHL4sqjyXpOgFKVozFmqr6NWs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:PhAUZYMQ9udBiEBn4Kpod6/ToO0= sha1:9SCXTm08WsJ53bf9P0NQ0J2dX7Q= Xref: reader02.eternal-september.org comp.lang.ada:50393 Date: 2018-02-12T18:40:32+00:00 List-Id: "Jeffrey R. Carter" writes: > What you're learning is type extension. By far most of the questions > on here where the language doesn't do what is expected deal with > anonymous access types and type extension. That's because they're > parts of the language that are counter-intuitive and confusing. You're > doing both. Don't do that, and things will be much easier. > > But if you're taking a course and have to mess with type extension, at > least you should avoid the access types. I don't have a view one way or another about access types, but you (Mehdi) should disregard this advice about avoiding type extension.