comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: rep clause confusion
Date: Tue, 01 Jan 2002 05:23:16 GMT
Date: 2002-01-01T05:23:16+00:00	[thread overview]
Message-ID: <8JbY7.631$wp1.263@www.newsranger.com> (raw)
In-Reply-To: ed8Y7.27607$4x4.3341820@news2-win.server.ntlworld.com

In article <ed8Y7.27607$4x4.3341820@news2-win.server.ntlworld.com>, chris.danx
says...
>for some_type
>    use record
>        abc        at 0 range 0..7;
>        def        at 1 range 0..7;
>    end record;
>
>The 'at' bit confuses me.  Does this mean the storage element (numbered from
>zero)?  If so that means, abc spans storage element zero bits 0..7 and def
>spans storage element 1 bits 0..7.  Is this correct?

Yes. Think of them as offsets in storage elements (usually bytes) from the start
of the record.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.



  reply	other threads:[~2002-01-01  5:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-01  1:25 rep clause confusion chris.danx
2002-01-01  5:23 ` Ted Dennison [this message]
2002-01-03 16:24 ` Jerry Petrey
replies disabled

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