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: G. B. Newsgroups: comp.lang.ada Subject: Re: grassroots thoughts on access types Date: Fri, 9 Feb 2018 20:32:23 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <5d9134c9-a7d4-468e-8685-ebbb393eabea@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 9 Feb 2018 20:32:23 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="abb3ba81e93a2491bd73a358f09fff45"; logging-data="4773"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JxT3ziakpWya3bGSHVi6tE9yfeyh2MMc=" User-Agent: NewsTap/5.3.1 (iPhone/iPod Touch) Cancel-Lock: sha1:8OfhU9OBodKMRyosbYdy4KmM5C0= sha1:gIgtvSCKfaASekUETFa3oqgul80= Xref: reader02.eternal-september.org comp.lang.ada:50346 Date: 2018-02-09T20:32:23+00:00 List-Id: Mehdi Saada <00120260a@gmail.com> wrote: > In my corrected exercices, I can read: > > package P_Token.F is > type T_Ptr_Token is access all T_Token'Class; > end P_Token.F; As a matter of style this makes me think that someone seems well versed in using Turbo Pascal and C++. Trying to transform idioms from said languages into Ada won’t help when trying to put the language to good use. As seen, there will be all kinds of pointer stuff. To mimic constructors using functions is one such attempt, I think.