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 X-Google-Thread: 103376,ded6ba3fc5b87b66 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-26 11:17:05 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.rediris.es!news.unizar.es!not-for-mail From: Alejandro Villanueva <190921@cepsz.unizar.es> Newsgroups: comp.lang.ada Subject: Re: First time Ada has let me down Date: Thu, 26 Oct 2000 20:05:46 +0200 Organization: Universidad de Zaragoza Message-ID: <39F87279.6602FB4E@cepsz.unizar.es> References: <8FD7DEBEEsynoptikdamudderfuck@news> <3A46E0A5.6C9EC5FD@telepath.com> <39F7D819.B720DAB7@nord-com.net> NNTP-Posting-Host: 155.210.154.31 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.unizar.es 972584576 4211 155.210.154.31 (26 Oct 2000 18:22:56 GMT) X-Complaints-To: usenet@news.unizar.es NNTP-Posting-Date: 26 Oct 2000 18:22:56 GMT X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) Xref: supernews.google.com comp.lang.ada:1583 Date: 2000-10-26T18:22:56+00:00 List-Id: Andreas Schulz wrote: > Ted Dennison wrote: > > It also works for modular integer types (Ada95 only) and *arrays* of booleans > > (which can be packed). Either one will do what you want. But if you also want > > to work with the data as integers, its silly to do it this way, then have to > > Unchecked_Convert all over the place. Let the record rep clause do the work > > for you! > > I recently tried something similar to eveluate a slightly more > complex binary data structure, which ended up as a bunch of > nested variant records with representation clauses, using almost > all possible sizes from 1..32 bits. Compiling with GNAT, > that resulted in several errors like : > 'fields of "XXX" must start at storage unit boundary' > Apparently, GNAT doesn't like unaligned variant records, or is there > any way around that limitation (besides using '/'/mod/and, which > is how this stuff is handled now) ? The 'mod is of no use anymore. Ada95 uses 'Alignment. > > > A. Schulz -- ------------------------------------------------------ �Quieres Cobrar por Navegar en Internet? Visita: http://www.navegana.com/dinero/flintstone.html ------------------------------------------------------ Alejandro Villanueva 190921@cepsz.unizar.es ------------------------------------------------------