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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec264956a9d7e36a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-11 09:34:18 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <2sk5nInklHl1@eisner.encompasserve.org> Subject: Re: Restrictions on compilers for Microsoft's .NET project Date: Mon, 11 Feb 2002 17:34:04 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: ed125012.sd.edinbr.gmav.gecm.com Message-ID: <3c680086@pull.gecm.com> X-Trace: 11 Feb 2002 17:33:58 GMT, ed125012.sd.edinbr.gmav.gecm.com Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!isdnet!btnet-peer1!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!ed125012.sd.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:19874 Date: 2002-02-11T17:34:04+00:00 List-Id: > Note that this says that non-overlapped variants are ok. Ada only > allows non-overlapped variants. er, shurely shome mishtake?... it does allow them to be overlapping (via 'Size or a rep spec) but e.g. type A_Variant (Value : Foo := Foo'First) is record case Value is when Bar1 => Int : Integer; when Bar2 => Bool : Boolean; end case; end record; for A_Variant'Size use 64; but you do have to make a positive decision to do it and to do and you can't just change to the other variant without again doing something explicit (e.g. uncheck conversion, or a whole record assignment).