comp.lang.ada
 help / color / mirror / Atom feed
From: Alejandro Villanueva <190921@cepsz.unizar.es>
Subject: Re: First time Ada has let me down
Date: Thu, 26 Oct 2000 20:05:46 +0200
Date: 2000-10-26T18:22:56+00:00	[thread overview]
Message-ID: <39F87279.6602FB4E@cepsz.unizar.es> (raw)
In-Reply-To: 39F7D819.B720DAB7@nord-com.net

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
------------------------------------------------------






  reply	other threads:[~2000-10-26 18:05 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-25  3:50 First time Ada has let me down Shifty
2000-10-25  0:00 ` wv12
2000-10-25  0:00   ` Gisle Sælensminde
2000-10-25  0:00   ` Joel Seidman
2000-10-25  0:00   ` Gautier
2000-10-26  6:42   ` tmoran
2000-10-25  0:00 ` First time Ada has let me down (recipe) Guillaume
2000-10-26  2:45   ` Mats Weber
2000-10-25  0:00 ` First time Ada has let me down Ken Garlington
2000-10-25  0:00   ` Shifty
2000-10-26  4:00     ` Jeff Carter
2000-10-26 14:43       ` Ted Dennison
2000-10-26 17:55         ` tmoran
2000-10-26 17:12       ` Shifty
2000-10-27  1:00         ` Jeff Carter
2000-10-26 22:27       ` Guillaume
2000-10-26 21:49         ` Keith Thompson
2000-10-26 14:36     ` Ted Dennison
2000-10-26 17:55       ` tmoran
2000-10-26 23:08         ` Ted Dennison
2000-10-25  0:00 ` Larry Kilgallen
2000-10-25  0:00   ` Ted Dennison
2000-10-25  0:00     ` Larry Kilgallen
2000-10-25  0:00       ` Ted Dennison
2000-10-25  4:44 ` Julian Morrison
2000-10-25  4:50 ` Ted Dennison
2000-10-24  0:00   ` Keith Thompson
2000-10-26  0:00   ` Andreas Schulz
2000-10-26 18:05     ` Alejandro Villanueva [this message]
2000-10-26 21:46 ` Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox