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!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Declaring constants for a abstract tagged type and concrete sub classes Date: Tue, 07 Jul 2015 13:18:48 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <0ade6abf-34c0-46e2-8bd9-d60a00056321@googlegroups.com> <28d2406c-d579-4710-9b34-108317fe9abf@googlegroups.com> <87b318bc-9534-413a-ad3c-dc2a12855ef2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 7 Jul 2015 20:17:25 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="a3855fbfe1a666be9aefba0563039ed5"; logging-data="5920"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TifivZ8K7SRSjAKLFMoxRsz2biSx0iPY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <87b318bc-9534-413a-ad3c-dc2a12855ef2@googlegroups.com> Cancel-Lock: sha1:n7RzsXqdkFQlBDo/JA3TH3jwNFI= Xref: news.eternal-september.org comp.lang.ada:26690 Date: 2015-07-07T13:18:48-07:00 List-Id: On 07/07/2015 12:51 PM, Serge Robyns wrote: > > This one did the trick! I'm marveled by the syntax and the meaning of the > standalone tick ('). I'm wondering how I'll master these idiosyncrasies. > I've tried to read years back the 95 RM but honestly it isn't bedtime > lecture. The wiki book is much readable but seems to leave quite some ground > unexplored. And I must admit I don't capture the essence of the difference > between the above one and below one, except the obvious (variable vs. type) > it puzzles me that it builds a variable out of type definition. Yes, the ARM is not a good way to learn the language, and the wiki book leaves some things to be desired. If you have experience with another language, I recommend /Ada Distilled/: http://www.adaic.org/wp-content/uploads/2010/05/Ada-Distilled-24-January-2011-Ada-2005-Version.pdf If you'd like more of a beginner's introduction, there's /Ada 95: The Craft of Object Oriented Programming/: http://archive.adaic.com/docs/craft/craft.html Both are freely available on line. -- Jeff Carter "I've seen projects fail miserably for blindly applying the Agile catechism: we're Agile, we don't need to stop and think, we just go ahead and code!" Bertrand Meyer 150