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 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!34g2000hsz.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Ada Gems in educational material Date: Wed, 5 Mar 2008 21:35:37 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <47cec0cf$0$21928$9b4e6d93@newsspool2.arcor-online.net> NNTP-Posting-Host: 75.171.117.108 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1204781737 20806 127.0.0.1 (6 Mar 2008 05:35:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 6 Mar 2008 05:35:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 34g2000hsz.googlegroups.com; posting-host=75.171.117.108; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/523 (KHTML, like Gecko, Safari/523.10) OmniWeb/v615.0.98209,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20190 Date: 2008-03-05T21:35:37-08:00 List-Id: On Mar 5, 8:48=A0am, Georg Bauhaus wrote: > 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. > > http://www.adacore.com/2008/03/03/gem-27/ I wonder if this works on records with discriminants. Jerry