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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.236.92.204 with SMTP id j52mr18167035yhf.26.1398120392689; Mon, 21 Apr 2014 15:46:32 -0700 (PDT) X-Received: by 10.50.112.137 with SMTP id iq9mr612260igb.8.1398120392565; Mon, 21 Apr 2014 15:46:32 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cm18no4947607qab.0!news-out.google.com!en3ni249igc.0!nntp.google.com!c1no1713819igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 Apr 2014 15:46:31 -0700 (PDT) In-Reply-To: <87ha5m1kyc.fsf@ludovic-brenta.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <53554D3F.8050009@shaw.ca> <87ha5m1kyc.fsf@ludovic-brenta.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <55d2bc64-c77c-410f-8002-131a10128aa4@googlegroups.com> Subject: Re: Type Transcriptions From: Adam Beneschan Injection-Date: Mon, 21 Apr 2014 22:46:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2003 X-Received-Body-CRC: 3437261445 Xref: news.eternal-september.org comp.lang.ada:19476 Date: 2014-04-21T15:46:31-07:00 List-Id: On Monday, April 21, 2014 1:33:47 PM UTC-7, Ludovic Brenta wrote: =20 > In this case, Ada 2012 saves the day! Maybe it saved the day in your case, but it's not applicable to the OP's ne= eds. Unchecked_Union is really only for variant records (since it was inte= nded to provide a way to interface to C routines that need "union" types). = The rules say that Unchecked_Union may apply only to a variant record type= , and the discriminant can't be used as a constraint on a component except = for another Unchecked_Union record--definitely not on an array subtype whic= h is what the OP would need. (RM B.3.3(8)) Also, Unchecked_Unions were added in Ada 2005, not 2012. (In Ada 2005, it = was a pragma.) -- Adam