From: bourguet@my-dejanews.com
Subject: Re: Stream IO - Correct usage of Set_Index
Date: 1999/03/02
Date: 1999-03-02T00:00:00+00:00 [thread overview]
Message-ID: <7bgej7$erj$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 7bemc8$snn$1@whatsit.aston.ac.uk
In article <7bemc8$snn$1@whatsit.aston.ac.uk>,
gaukrogi@aston.ac.uk (Rofi) wrote:
> Platform : Solaris, Linux
>
> Compiler : GNAT 3.10p
>
> Already Looked in :
> Ada Reference Manual;
The answer is there :-)
> I have tried using the attribute Size which appears to return the
> size of the datastructure in bits. On this compiler I can divide this by 8
> and I get the correct values but this method seem to me to be very Adalike.
> Am I missing something monumentally obvious or ...... ?
A stream is a stream of Stream_Element, so the size you want to divide by
is Stream_Element'Size.
But I'd usually design my program to have only to move to result of the
"give me the current position" function (I've not my RM here, so I can't
check).
-- Jean-Marc
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
next prev parent reply other threads:[~1999-03-02 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-01 0:00 Stream IO - Correct usage of Set_Index Rofi
1999-03-02 0:00 ` dennison
1999-03-04 0:00 ` Rofi
1999-03-04 0:00 ` dennison
1999-03-02 0:00 ` bourguet [this message]
1999-03-04 0:00 ` Rofi
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox