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-Thread: 103376,162afea183f99845,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 05 Mar 2008 16:48:31 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Ada Gems in educational material Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <47cec0cf$0$21928$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 05 Mar 2008 16:48:31 CET NNTP-Posting-Host: 0f174086.newsspool2.arcor-online.net X-Trace: DXC=KlBcEi9i`Ab;iVb[J9ZZP`A9EHlD;3Ycb4Fo<]lROoRaFl8W>\BH3Yb8oESB`Xd;fl;9OJDO8_SKfNSZ1n^B98ij2?CmM817YRa X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:20187 Date: 2008-03-05T16:48:31+01:00 List-Id: Gem #27: Changing Data Representation (Part 1) by Robert Dewar explains how to use type derivation if you want to have two representations of the same data. The types let you convert between an external and an internal representation, say. IIRC, this is feature of Ada 83 and has been text book material at the time. Has it got lost in modern times introductions to Ada 95 and later? How can a valuable, venerable basic facility for problem solving be missed?

Maybe authors and instructors have not come across these features because the features are not easily available in the non-Ada languages with which they have learned programming? http://www.adacore.com/2008/03/03/gem-27/