From: gaukrogi@aston.ac.uk (Rofi)
Subject: Re: Stream IO - Correct usage of Set_Index
Date: 1999/03/04
Date: 1999-03-04T00:00:00+00:00 [thread overview]
Message-ID: <7bmj4n$mmv$1@whatsit.aston.ac.uk> (raw)
In-Reply-To: 7bgej7$erj$1@nnrp1.dejanews.com
In article <7bgej7$erj$1@nnrp1.dejanews.com>,
bourguet@my-dejanews.com writes:
> In article <7bemc8$snn$1@whatsit.aston.ac.uk>,
> gaukrogi@aston.ac.uk (Rofi) wrote:
>>
>> Already Looked in :
>> Ada Reference Manual;
>
> The answer is there :-)
With the correct directing in hindsight of course it is (d'oh).
>
>> 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.
>
Yep, works like a dream.
> 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).
Yes, after considering the other reply to my question I think that would
be best.
>
> -- Jean-Marc
>
Thanks alot, you saved a lot of hair pulling etc :-). ( Sorry for my late
reply but I wanted to try out your answer (and then of course got side-
tracked by something else !) )
Cheers
Rofi
prev parent reply other threads:[~1999-03-04 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
1999-03-04 0:00 ` Rofi [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox